From 2739121bad18fcc169ee9e80ce028cc6d15d3a2f Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Wed, 20 Apr 2022 15:01:37 +0300 Subject: [PATCH] v6.0.0.0 Changelog: https://roxy-wi.org/changelog.py#6 --- app/db_model.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/db_model.py b/app/db_model.py index 7d5fadb4..52985bab 100644 --- a/app/db_model.py +++ b/app/db_model.py @@ -473,10 +473,20 @@ class SystemInfo(BaseModel): class Meta: table_name = 'system_info' + +class Services(BaseModel): + service_id = IntegerField(null=True) + service = CharField(null=True) + + class Meta: + table_name = 'services' + primary_key = False + + def create_tables(): with conn: conn.create_tables([User, Server, Role, Telegram, Slack, UUID, Token, ApiToken, Groups, UserGroups, ConfigVersion, Setting, Cred, Backup, Metrics, WafMetrics, Version, Option, SavedServer, Waf, ActionHistory, PortScannerSettings, PortScannerPorts, PortScannerHistory, ProvidersCreds, ServiceSetting, ProvisionedServers, MetricsHttpStatus, SMON, WafRules, Alerts, GeoipCodes, NginxMetrics, - SystemInfo]) + SystemInfo, Services])