diff --git a/app/modules/db/db_model.py b/app/modules/db/db_model.py index 10f8b632..6486580b 100644 --- a/app/modules/db/db_model.py +++ b/app/modules/db/db_model.py @@ -433,11 +433,11 @@ class SMON(BaseModel): ssl_expire_critical_alert = IntegerField(constraints=[SQL('DEFAULT 0')]) ssl_expire_date = CharField(null=True) pd_channel_id = IntegerField(null=True) - check_type = CharField(constraints=[SQL('DEFAULT tcp')]) + check_type = CharField(constraints=[SQL('DEFAULT "tcp"')]) class Meta: table_name = 'smon' - constraints = [SQL('UNIQUE (ip, port, http, body)')] + constraints = [SQL('UNIQUE (name, port, http, body)')] class Alerts(BaseModel):