require email field
This commit is contained in:
parent
5d0d996288
commit
008f0b2cf6
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class UserBase(SQLModel):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = Field(primary_key=True)
|
name: str = Field(primary_key=True)
|
||||||
email: str | None = Field(default=None)
|
email: str
|
||||||
|
|
||||||
country: str | None = Field(default=None, max_length=2)
|
country: str | None = Field(default=None, max_length=2)
|
||||||
state: str | None = Field(default=None)
|
state: str | None = Field(default=None)
|
||||||
|
|
|
@ -26,7 +26,7 @@ class DistinguishedName(BaseModel):
|
||||||
city: str
|
city: str
|
||||||
organization: str
|
organization: str
|
||||||
organizational_unit: str
|
organizational_unit: str
|
||||||
email: str | None
|
email: str
|
||||||
common_name: str
|
common_name: str
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue