Removed type_ from sqlmodel.Column, because it isn't needed
This commit is contained in:
parent
afc03a6c1f
commit
373623b0b4
@ -8,10 +8,10 @@ class MasterPass(sqlmodel.SQLModel, table=True):
|
|||||||
id: Optional[int] = sqlmodel.Field(primary_key=True)
|
id: Optional[int] = sqlmodel.Field(primary_key=True)
|
||||||
user_id: int = sqlmodel.Field(nullable=False, index=True, unique=True)
|
user_id: int = sqlmodel.Field(nullable=False, index=True, unique=True)
|
||||||
salt: bytes = sqlmodel.Field(
|
salt: bytes = sqlmodel.Field(
|
||||||
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
||||||
)
|
)
|
||||||
passwd: bytes = sqlmodel.Field(
|
passwd: bytes = sqlmodel.Field(
|
||||||
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -22,11 +22,11 @@ class Account(sqlmodel.SQLModel, table=True):
|
|||||||
user_id: int = sqlmodel.Field(nullable=False, index=True)
|
user_id: int = sqlmodel.Field(nullable=False, index=True)
|
||||||
name: str = sqlmodel.Field(nullable=False, index=True, max_length=255)
|
name: str = sqlmodel.Field(nullable=False, index=True, max_length=255)
|
||||||
salt: bytes = sqlmodel.Field(
|
salt: bytes = sqlmodel.Field(
|
||||||
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
||||||
)
|
)
|
||||||
enc_login: bytes = sqlmodel.Field(
|
enc_login: bytes = sqlmodel.Field(
|
||||||
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
||||||
)
|
)
|
||||||
enc_pass: bytes = sqlmodel.Field(
|
enc_pass: bytes = sqlmodel.Field(
|
||||||
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user