mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 03:47:27 +08:00
[chuni] Save recent rating to database
[ongeki] Save recent rating to database
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
create table chuni_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 UK2up23a6n1ghlf5gewa4tm5f2d
|
||||
unique (user_id, property_key),
|
||||
constraint FK2dkb8agh5ye1f15g5hbcv63uj
|
||||
foreign key (user_id) references chuni_user_data (id)
|
||||
);
|
||||
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE chuni_user_general_data
|
||||
(
|
||||
id INTEGER,
|
||||
property_key VARCHAR NOT NULL,
|
||||
property_value VARCHAR NOT NULL,
|
||||
user_id BIGINT REFERENCES chuni_user_data (id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (
|
||||
id
|
||||
),
|
||||
CONSTRAINT chuni_user_general_data_uq UNIQUE (
|
||||
property_key,
|
||||
user_id
|
||||
) ON CONFLICT REPLACE
|
||||
);
|
||||
Reference in New Issue
Block a user