The backend component to interface with the smart contract.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 月之前
1234567891011121314151617
  1. from datetime import datetime, UTC
  2. from sqlalchemy import Column, Integer, String, Table
  3. from app.db.base import Base
  4. user = Table(
  5. "sessions",
  6. Base.metadata,
  7. Column("id", Integer, primary_key=True),
  8. Column("session_id", String, nullable=False),
  9. Column("auth_date", Integer, nullable=False),
  10. Column("username", String, nullable=False),
  11. Column("first_name", String, nullable=False),
  12. Column("last_name", String, nullable=False),
  13. Column("photo_url", String, nullable=False)
  14. )