|
|
|
@ -8,10 +8,10 @@ class MasterPass(sqlmodel.SQLModel, table=True):
|
|
|
|
|
id: Optional[int] = sqlmodel.Field(primary_key=True)
|
|
|
|
|
user_id: int = sqlmodel.Field(nullable=False, index=True, unique=True)
|
|
|
|
|
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(
|
|
|
|
|
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)
|
|
|
|
|
name: str = sqlmodel.Field(nullable=False, index=True, max_length=255)
|
|
|
|
|
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(
|
|
|
|
|
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
|
|
|
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
|
|
|
|
)
|
|
|
|
|
enc_pass: bytes = sqlmodel.Field(
|
|
|
|
|
sa_column=sqlmodel.Column(type_=sqlmodel.VARBINARY(255), nullable=False)
|
|
|
|
|
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(255), nullable=False)
|
|
|
|
|
)
|
|
|
|
|