country max_length

This commit is contained in:
Jörn-Michael Miehe 2022-03-30 08:30:20 +00:00
parent f899e0c0df
commit b202f85d3b

View file

@ -24,7 +24,7 @@ class UserBase(SQLModel):
name: str = Field(primary_key=True) name: str = Field(primary_key=True)
email: str | None = Field(default=None) email: str | None = Field(default=None)
country: str | None = Field(default=None) country: str | None = Field(default=None, max_length=2)
state: str | None = Field(default=None) state: str | None = Field(default=None)
city: str | None = Field(default=None) city: str | None = Field(default=None)
organization: str | None = Field(default=None) organization: str | None = Field(default=None)