Skip to content

Commit d61a001

Browse files
committed
ading patient create
1 parent 0ac2770 commit d61a001

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/app/models.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ class PatientBase(SQLModel):
139139

140140
# Properties to receive on item creation
141141
class PatientCreate(PatientBase):
142-
pass
142+
password: str = Field(min_length=8, max_length=40)
143+
144+
145+
class PatientRegister(SQLModel):
146+
email: EmailStr = Field(max_length=255)
147+
password: str = Field(min_length=8, max_length=40)
148+
full_name: str = Field(default=None, max_length=255)
143149

144150

145151
# Properties to receive on item update

0 commit comments

Comments
 (0)