Decreased size of enc_login and enc_pass to 256 bytes

This commit is contained in:
StNicolay 2022-11-25 21:21:18 +03:00
parent 2ea3096fb0
commit b4c6e17ce2

View File

@ -25,8 +25,8 @@ class Account(sqlmodel.SQLModel, table=True):
sa_column=sqlmodel.Column(sqlmodel.BINARY(64), nullable=False)
)
enc_login: bytes = sqlmodel.Field(
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(500), nullable=False)
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(256), nullable=False)
)
enc_pass: bytes = sqlmodel.Field(
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(500), nullable=False)
sa_column=sqlmodel.Column(sqlmodel.VARBINARY(256), nullable=False)
)