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 0ac2770 commit d61a001Copy full SHA for d61a001
backend/app/models.py
@@ -139,7 +139,13 @@ class PatientBase(SQLModel):
139
140
# Properties to receive on item creation
141
class PatientCreate(PatientBase):
142
- pass
+ password: str = Field(min_length=8, max_length=40)
143
+
144
145
+class PatientRegister(SQLModel):
146
+ email: EmailStr = Field(max_length=255)
147
148
+ full_name: str = Field(default=None, max_length=255)
149
150
151
# Properties to receive on item update
0 commit comments