Skip to content

Commit c92a8e6

Browse files
authored
test: password -> pass hashed_password -> hashed
1 parent 689f5ea commit c92a8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class UserBase(SQLModel):
1414

1515
# Properties to receive via API on creation
1616
class UserCreate(UserBase):
17-
password: str = Field(min_length=8, max_length=128)
17+
pass: str = Field(min_length=8, max_length=128)
1818

1919

2020
class UserRegister(SQLModel):
@@ -42,7 +42,7 @@ class UpdatePassword(SQLModel):
4242
# Database model, database table inferred from class name
4343
class User(UserBase, table=True):
4444
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
45-
hashed_password: str
45+
hashed: str
4646
items: list["Item"] = Relationship(back_populates="owner", cascade_delete=True)
4747

4848

0 commit comments

Comments
 (0)