We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689f5ea commit c92a8e6Copy full SHA for c92a8e6
backend/app/models.py
@@ -14,7 +14,7 @@ class UserBase(SQLModel):
14
15
# Properties to receive via API on creation
16
class UserCreate(UserBase):
17
- password: str = Field(min_length=8, max_length=128)
+ pass: str = Field(min_length=8, max_length=128)
18
19
20
class UserRegister(SQLModel):
@@ -42,7 +42,7 @@ class UpdatePassword(SQLModel):
42
# Database model, database table inferred from class name
43
class User(UserBase, table=True):
44
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
45
- hashed_password: str
+ hashed: str
46
items: list["Item"] = Relationship(back_populates="owner", cascade_delete=True)
47
48
0 commit comments