badgey/migrations/2023-09-26-215927_add custo.../up.sql

10 lines
294 B
SQL

-- Your SQL goes here
CREATE TABLE IF NOT EXISTS "custom_responses" (
id SERIAL PRIMARY KEY,
trigger TEXT NOT NULL,
response TEXT NOT NULL,
added_by BIGINT NOT NULL,
added_on BIGINT NOT NULL,
added_for BIGINT NOT NULL REFERENCES userinfo(user_id),
deleted BOOLEAN
);