mirror of
https://github.com/usememos/memos.git
synced 2024-11-18 20:51:21 +08:00
848ecd99ee
chore: format sql
9 lines
No EOL
262 B
SQL
9 lines
No EOL
262 B
SQL
-- user_setting
|
|
CREATE TABLE user_setting (
|
|
user_id INTEGER NOT NULL,
|
|
key TEXT NOT NULL,
|
|
value TEXT NOT NULL,
|
|
FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX user_setting_key_user_id_index ON user_setting(key, user_id); |