Files
OverCooked-Installer/s-migrations/000038_store_settings.up.sql
T

13 lines
489 B
SQL

CREATE TABLE store_settings (
singleton boolean PRIMARY KEY DEFAULT true CHECK (singleton),
title text NOT NULL DEFAULT '会员商店',
introduction text NOT NULL DEFAULT '',
notice text NOT NULL DEFAULT '',
enabled boolean NOT NULL DEFAULT true,
allow_point_purchase boolean NOT NULL DEFAULT true,
updated_by text NOT NULL DEFAULT '',
updated_at timestamptz NOT NULL DEFAULT now()
);
INSERT INTO store_settings(singleton) VALUES(true) ON CONFLICT (singleton) DO NOTHING;