PaiGram/app/user/models.py
洛水居室 9e7637203a
♻ 重构 mysql 通信模块
移除 `aiomysql` 依赖
添加 `SQLAlchemy` `sqlmodel` `asyncmy` 依赖
2022-08-04 21:18:23 +08:00

12 lines
280 B
Python

from typing import Optional
from sqlmodel import SQLModel, Field
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()