You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
autohero/backend/migrations/000025_buff_debuff_config.sql

11 lines
356 B
SQL

CREATE TABLE IF NOT EXISTS buff_debuff_config (
id BOOLEAN PRIMARY KEY DEFAULT TRUE,
payload JSONB NOT NULL DEFAULT '{}'::jsonb,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
CONSTRAINT buff_debuff_config_single_row CHECK (id = TRUE)
);
INSERT INTO buff_debuff_config (id, payload)
VALUES (TRUE, '{}'::jsonb)
ON CONFLICT (id) DO NOTHING;