require email field

This commit is contained in:
Jörn-Michael Miehe 2022-03-31 16:34:36 +00:00
parent 5d0d996288
commit 008f0b2cf6
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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