We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e90464 commit b93bc85Copy full SHA for b93bc85
2 files changed
src/main/resources/schema.sql
@@ -14,6 +14,9 @@ CREATE TABLE IF NOT EXISTS user_accounts (
14
github_id BIGINT UNIQUE
15
);
16
17
+-- 偏好设置列(JSONB 顶层合并,前端可自由扩展 key)
18
+ALTER TABLE user_accounts ADD COLUMN IF NOT EXISTS preferences JSONB NOT NULL DEFAULT '{}'::jsonb;
19
+
20
-- 默认种子账号(已存在则跳过)
21
-- admin / Admin@123456
22
-- alice / Alice@123456
src/test/resources/test-schema.sql
@@ -9,7 +9,8 @@ CREATE TABLE IF NOT EXISTS user_accounts (
9
permissions TEXT NOT NULL DEFAULT '',
10
avatar_url VARCHAR(500),
11
email VARCHAR(255),
12
- github_id BIGINT UNIQUE
+ github_id BIGINT UNIQUE,
13
+ preferences VARCHAR(4000) NOT NULL DEFAULT '{}'
-- 种子账号(与生产保持一致)逐行插入,H2 兼容写法
0 commit comments