1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-02 18:44:59 +00:00

Initial version of policies

This commit is contained in:
Daniel García 2020-03-14 13:22:30 +01:00
parent 70f3ab8ec3
commit 3fa78e7bb1
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
15 changed files with 296 additions and 23 deletions

View file

@ -0,0 +1 @@
DROP TABLE org_policies;

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)
);