From b202f85d3b49123d252acbeedc100b0781a9195c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 30 Mar 2022 08:30:20 +0000 Subject: [PATCH] country max_length --- api/kiwi_vpn_api/db/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/db/user.py b/api/kiwi_vpn_api/db/user.py index 54e0d2b..b59be6d 100644 --- a/api/kiwi_vpn_api/db/user.py +++ b/api/kiwi_vpn_api/db/user.py @@ -24,7 +24,7 @@ class UserBase(SQLModel): name: str = Field(primary_key=True) 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) city: str | None = Field(default=None) organization: str | None = Field(default=None)