init push
This commit is contained in:
13
backend/store/pg/migration/000018_create_settings.up.sql
Normal file
13
backend/store/pg/migration/000018_create_settings.up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Create settings table
|
||||
CREATE TABLE IF NOT EXISTS settings (
|
||||
id SERIAL PRIMARY KEY,
|
||||
kb_id TEXT NOT NULL,
|
||||
key TEXT NOT NULL,
|
||||
value JSONB NOT NULL,
|
||||
description TEXT,
|
||||
created_at timestamptz NOT NULL DEFAULT NOW(),
|
||||
updated_at timestamptz NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- Create unique index for kb_id + key combination
|
||||
CREATE UNIQUE INDEX idx_settings_kb_id_key ON settings (kb_id, key);
|
||||
Reference in New Issue
Block a user