diff --git a/api/kiwi_vpn_api/db/user.py b/api/kiwi_vpn_api/db/user.py index 7011545..40ec9b2 100644 --- a/api/kiwi_vpn_api/db/user.py +++ b/api/kiwi_vpn_api/db/user.py @@ -22,7 +22,7 @@ class UserBase(SQLModel): """ name: str = Field(primary_key=True) - email: str | None = Field(default=None) + email: str country: str | None = Field(default=None, max_length=2) state: str | None = Field(default=None) diff --git a/api/kiwi_vpn_api/easyrsa.py b/api/kiwi_vpn_api/easyrsa.py index bfa86f3..6322af0 100644 --- a/api/kiwi_vpn_api/easyrsa.py +++ b/api/kiwi_vpn_api/easyrsa.py @@ -26,7 +26,7 @@ class DistinguishedName(BaseModel): city: str organization: str organizational_unit: str - email: str | None + email: str common_name: str @classmethod