saving steel script into the database
This commit is contained in:
@@ -4,9 +4,9 @@ CREATE TABLE table_scripts (
|
||||
table_definitions_id BIGINT NOT NULL REFERENCES table_definitions(id),
|
||||
target_column TEXT NOT NULL,
|
||||
script TEXT NOT NULL,
|
||||
source_tables TEXT[] NOT NULL, -- Added to track which tables are used in calculation
|
||||
source_columns TEXT[] NOT NULL, -- Added to track which columns are used in calculation
|
||||
description TEXT, -- Optional description of what the script does
|
||||
source_tables TEXT[],
|
||||
source_columns TEXT[],
|
||||
description TEXT,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
UNIQUE(table_definitions_id, target_column)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user