mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 17:07:28 +08:00
[maimai2] Add userGeneralData table
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
create table maimai2_user_general_data
|
||||
(
|
||||
id bigint auto_increment
|
||||
primary key,
|
||||
property_key varchar(255) not null,
|
||||
property_value text not null,
|
||||
user_id bigint null,
|
||||
constraint UKiPb2EMwbXzqTUfMun6Y4AeAKx
|
||||
unique (user_id, property_key),
|
||||
constraint FK6BJbvEH8Z22SLbwWKxsb7uarS
|
||||
foreign key (user_id) references maimai2_user_detail (id)
|
||||
);
|
||||
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user