UI: Rules: Global policies, not rules.

This commit is contained in:
Nodir Temirkhodjaev 2021-03-11 12:36:39 +03:00
parent 8f80459251
commit a85117856f

View File

@ -39,13 +39,6 @@ CREATE TABLE rule(
extra TEXT -- TCP flags, ICMP types, etc extra TEXT -- TCP flags, ICMP types, etc
); );
CREATE TABLE global_rule(
global_rule_id INTEGER PRIMARY KEY,
type INTEGER NOT NULL,
rule_id INTEGER NOT NULL,
order_index INTEGER NOT NULL
);
CREATE TABLE policy( CREATE TABLE policy(
policy_id INTEGER PRIMARY KEY, policy_id INTEGER PRIMARY KEY,
enabled BOOLEAN NOT NULL, enabled BOOLEAN NOT NULL,
@ -79,6 +72,13 @@ CREATE TABLE policy_menu_set(
policy_id INTEGER NOT NULL policy_id INTEGER NOT NULL
); );
CREATE TABLE global_policy(
global_policy_id INTEGER PRIMARY KEY,
type INTEGER NOT NULL,
policy_id INTEGER NOT NULL,
order_index INTEGER NOT NULL
);
CREATE TABLE app_group( CREATE TABLE app_group(
app_group_id INTEGER PRIMARY KEY, app_group_id INTEGER PRIMARY KEY,
order_index INTEGER NOT NULL, order_index INTEGER NOT NULL,