mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 12:51:45 +00:00
602ce67e41
`apps` → `core`
14 lines
381 B
Python
14 lines
381 B
Python
from typing import Optional
|
|
|
|
from sqlmodel import SQLModel, Field, Enum, Column
|
|
|
|
from models.base import RegionEnum
|
|
|
|
|
|
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: Optional[RegionEnum] = Field(sa_column=Column(Enum(RegionEnum)))
|