Initial version of policies

This commit is contained in:
Daniel García
2020-03-14 13:22:30 +01:00
parent 70f3ab8ec3
commit 3fa78e7bb1
15 changed files with 296 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
CREATE TABLE org_policies (
uuid CHAR(36) NOT NULL PRIMARY KEY,
org_uuid CHAR(36) NOT NULL REFERENCES organizations (uuid),
atype INTEGER NOT NULL,
enabled BOOLEAN NOT NULL,
data TEXT NOT NULL,
UNIQUE (org_uuid, atype)
);