Files
yhy-mager/backend/migrations/000018_suffix_col_widths.up.sql
lianjianwei2024 5fdac9902d
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled
feat(suffix): 支持根目录重命名、列宽保存、锚定值与文件发布
2026-10-31 09:17:28 +08:00

10 lines
490 B
SQL

-- Suffix management fixed-column widths (basic settings + directory workspace tables).
-- scope: 'basic' | 'workspace'; col_key: idx/suffix/files/ops/anchor; width 0 = auto.
CREATE TABLE suffix_col_widths (
scope VARCHAR(20) NOT NULL,
col_key VARCHAR(32) NOT NULL,
width INT NOT NULL DEFAULT 0,
updated_at TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY(scope,col_key)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;