mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 12:02:16 +00:00
10 lines
254 B
Python
10 lines
254 B
Python
|
|
from sqlmodel import SQLModel, Field
|
|
|
|
|
|
class Admin(SQLModel, table=True):
|
|
__table_args__ = dict(mysql_charset='utf8mb4', mysql_collate="utf8mb4_general_ci")
|
|
|
|
id: int = Field(primary_key=True)
|
|
user_id: int = Field(foreign_key="user.user_id")
|