Add contols audits
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
7
pkg/coredata/migrations/20250814T123441Z.sql
Normal file
7
pkg/coredata/migrations/20250814T123441Z.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE controls_audits (
|
||||
control_id TEXT NOT NULL REFERENCES controls(id),
|
||||
audit_id TEXT NOT NULL REFERENCES audits(id),
|
||||
tenant_id TEXT NOT NULL,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
|
||||
PRIMARY KEY (control_id, audit_id)
|
||||
);
|
||||
Reference in New Issue
Block a user