feat(ECR-037): ExploreConfig ImageCardDeck 只读并 Closed

ImageCardDeck catalog (000038) · Loop continuous.
This commit is contained in:
jackyu66git
2026-08-08 03:16:42 +08:00
parent 0fa6da2446
commit 5c462ecb2a
25 changed files with 455 additions and 1 deletions
@@ -0,0 +1 @@
DROP TABLE IF EXISTS image_card_decks;
@@ -0,0 +1,17 @@
-- ECR-037 ImageCardDeck (read catalog)
CREATE TABLE IF NOT EXISTS image_card_decks (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
code varchar(64) NOT NULL UNIQUE,
title varchar(128) NOT NULL,
active boolean NOT NULL DEFAULT true,
system boolean NOT NULL DEFAULT false,
created_at timestamptz NOT NULL DEFAULT now(),
updated_at timestamptz NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS idx_image_card_decks_active ON image_card_decks(active);
INSERT INTO image_card_decks(code, title, active, system)
VALUES ('default_deck', '默认意象牌组', true, true)
ON CONFLICT (code) DO NOTHING;