[maimai2] Add userGeneralData table

This commit is contained in:
Dom Eori
2021-10-07 21:51:44 +09:00
parent c9f80215ca
commit 8b22168df9
4 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
CREATE TABLE maimai2_user_general_data (
id INTEGER,
property_key VARCHAR NOT NULL,
property_value VARCHAR NOT NULL,
user_id BIGINT REFERENCES maimai2_user_detail (id) ON DELETE CASCADE,
PRIMARY KEY (
id
),
CONSTRAINT maimai2_user_general_data_uq UNIQUE (
property_key,
user_id
)
ON CONFLICT REPLACE
);