Renamed columns in tables
MasterPass passwd -> password_hash Account enc_pass -> enc_password
This commit is contained in:
@ -7,14 +7,14 @@ import pydantic
|
||||
class _Account(pydantic.BaseModel):
|
||||
name: str
|
||||
login: str
|
||||
passwd: str
|
||||
password: str
|
||||
|
||||
@classmethod
|
||||
def from_tuple(cls: Type[Self], tuple_: tuple[str, str, str]) -> Self:
|
||||
return cls(name=tuple_[0], login=tuple_[1], passwd=tuple_[2])
|
||||
|
||||
def as_tuple(self: Self) -> tuple[str, str, str]:
|
||||
return (self.name, self.login, self.passwd)
|
||||
return (self.name, self.login, self.password)
|
||||
|
||||
|
||||
class _Accounts(pydantic.BaseModel):
|
||||
|
Reference in New Issue
Block a user