13 lines
392 B
SQL
13 lines
392 B
SQL
-- Add migration script here
|
|
CREATE TABLE table_definitions (
|
|
id BIGSERIAL PRIMARY KEY,
|
|
deleted BOOLEAN NOT NULL DEFAULT FALSE,
|
|
firma TEXT NOT NULL,
|
|
table_name TEXT NOT NULL UNIQUE,
|
|
columns JSONB NOT NULL,
|
|
indexes JSONB NOT NULL,
|
|
created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE INDEX idx_table_definitions_table_name ON table_definitions (table_name);
|