The backend component to interface with the smart contract.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 2 mēnešiem
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. )