Renamed columns in tables

MasterPass passwd -> password_hash
Account enc_pass -> enc_password
This commit is contained in:
2022-11-30 17:05:04 +03:00
parent 04bb306751
commit 0d3965d5d2
4 changed files with 9 additions and 9 deletions

View File

@ -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):