MibooGram/apps/user/models.py

12 lines
280 B
Python
Raw Normal View History

from typing import Optional
2022-07-26 10:07:31 +00:00
from sqlmodel import SQLModel, Field
2022-07-26 10:07:31 +00:00
class User(SQLModel, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
user_id: int = Field()
yuanshen_uid: int = Field()
genshin_uid: int = Field()
region: int = Field()