added update to comments with characters counter

This commit is contained in:
GotthardG
2024-11-02 21:01:31 +01:00
parent 84f270b647
commit 0becdf9337
3 changed files with 140 additions and 36 deletions

View File

@ -1,5 +1,5 @@
from typing import List, Optional
from pydantic import BaseModel, EmailStr
from pydantic import BaseModel, EmailStr, constr
from datetime import date
@ -120,7 +120,7 @@ class ShipmentCreate(BaseModel):
shipment_name: str
shipment_date: date
shipment_status: str
comments: Optional[str] = ""
comments: Optional[constr(max_length=500)]
contact_person_id: int
return_address_id: int
proposal_id: int