The backend component to interface with the smart contract.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. )