[+] MaiMile and UserIntimate (partner closeness)

This commit is contained in:
Menci
2025-02-01 15:49:40 +08:00
committed by Azalea
parent 9d19c99abe
commit 2ef4b7241d
7 changed files with 44 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
ALTER TABLE maimai2_user_detail
ADD COLUMN point INT DEFAULT 0,
ADD COLUMN total_point INT DEFAULT 0;
CREATE TABLE maimai2_user_intimate
(
id BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
user_id BIGINT NULL,
partner_id INT NOT NULL,
intimate_level INT NOT NULL,
intimate_count_rewarded INT NOT NULL,
CONSTRAINT fku_maimai2_user_intimate FOREIGN KEY (user_id) REFERENCES maimai2_user_detail (id) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT unique_maimai2_user_intimate UNIQUE (user_id, partner_id)
);