feat(ECR-036): ExploreConfig RhythmConfig 只读并 Closed

RhythmConfig catalog (000037) · Loop continuous.
This commit is contained in:
jackyu66git
2026-08-08 03:16:26 +08:00
parent 57acfa6105
commit bd9e13497f
25 changed files with 455 additions and 1 deletions
@@ -0,0 +1 @@
DROP TABLE IF EXISTS rhythm_configs;
@@ -0,0 +1,17 @@
-- ECR-036 RhythmConfig (read catalog)
CREATE TABLE IF NOT EXISTS rhythm_configs (
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_rhythm_configs_active ON rhythm_configs(active);
INSERT INTO rhythm_configs(code, title, active, system)
VALUES ('default_rhythm', '默认节律配置', true, true)
ON CONFLICT (code) DO NOTHING;