Update customer_code field length
Taylor committed
Mar 29, 2024 at 11:02 UTC
3592764177b1c85e93495d459eb9f00380ae0bc5
1 file changed
+1
-1
backend/app/db/universal_models.py
+1
-1
@@ -8,7 +8,7 @@ from sqlmodel import SQLModel
8
9
class Customers(SQLModel, table=True):
10
id: Optional[int] = Field(primary_key=True)
11
- customer_code: str = Field(max_length=11, nullable=False)
11
+ customer_code: str = Field(max_length=50, nullable=False)
12
parent_customer_code: Optional[str] = Field(max_length=11)
13
customer_name: str = Field(max_length=50, nullable=False)
14
contact_last_name: Optional[str] = Field(max_length=50)