add command params
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlmodel import SQLModel, Field, BIGINT
|
||||
from sqlmodel import SQLModel, Field, BigInteger
|
||||
from sqlalchemy.ext.asyncio.session import AsyncSession
|
||||
|
||||
from . import session_dep
|
||||
@@ -7,7 +7,7 @@ from . import session_dep
|
||||
class ViewSetting(SQLModel, table=True):
|
||||
__tablename__ = "view_setting"
|
||||
user_id: int = Field(
|
||||
sa_type=BIGINT, primary_key=True, foreign_key="user.id", ondelete="CASCADE"
|
||||
sa_type=BigInteger, primary_key=True, foreign_key="user.id", ondelete="CASCADE"
|
||||
)
|
||||
entity_name: str = Field(primary_key=True)
|
||||
filter: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user