Move coredata outside probo service

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-11 09:38:36 +01:00
parent 3c1a0c9d6d
commit 5bdc474aef
113 changed files with 119 additions and 166 deletions

View File

@@ -0,0 +1,12 @@
CREATE TYPE policy_status AS ENUM ('DRAFT', 'ACTIVE');
CREATE TABLE policies (
id TEXT PRIMARY KEY,
organization_id TEXT REFERENCES organizations(id) NOT NULL,
name TEXT NOT NULL,
content TEXT NOT NULL,
status policy_status NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
version INTEGER NOT NULL
);