diff --git a/app/db_model.py b/app/db_model.py index 52985bab..ba6de13f 100644 --- a/app/db_model.py +++ b/app/db_model.py @@ -481,6 +481,7 @@ class Services(BaseModel): class Meta: table_name = 'services' primary_key = False + constraints = [SQL('UNIQUE (service_id, service)')] def create_tables():