[chusan] Add login bonus feature

This commit is contained in:
Fleming Karlzett
2023-05-11 02:06:40 +00:00
committed by Dom Eori
parent 3f05b84c0f
commit b858d9a2cd
16 changed files with 536 additions and 6 deletions

View File

@@ -0,0 +1,41 @@
create table chusan_game_login_bonus
(
id bigint not null
primary key,
version int not null,
preset_id int not null,
login_bonus_id int not null,
login_bonus_name varchar(255) not null,
present_id int not null,
present_name varchar(255) not null,
item_num int not null,
need_login_day_count int not null,
login_bonus_category_type int not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
collate = utf8mb4_unicode_ci;
create table chusan_game_login_bonus_preset
(
id bigint not null
primary key,
version int not null,
preset_name varchar(255) not null,
is_enabled int default 1 not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
collate = utf8mb4_unicode_ci;
create table chusan_user_login_bonus
(
id bigint auto_increment primary key,
user bigint not null,
version int not null,
preset_id int not null,
bonus_count int default 0 not null,
last_update_date datetime default '2018-01-01 00:00:00' not null,
is_watched int default 0 not null,
is_finished int default 0 not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
collate = utf8mb4_unicode_ci;

View File

@@ -0,0 +1,41 @@
create table chusan_game_login_bonus
(
id bigint not null
primary key,
version int not null,
preset_id int not null,
login_bonus_id int not null,
login_bonus_name varchar(255) not null,
present_id int not null,
present_name varchar(255) not null,
item_num int not null,
need_login_day_count int not null,
login_bonus_category_type int not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci;
create table chusan_game_login_bonus_preset
(
id bigint not null
primary key,
version int not null,
preset_name varchar(255) not null,
is_enabled int default 1 not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci;
create table chusan_user_login_bonus
(
id bigint auto_increment primary key,
user bigint not null,
version int not null,
preset_id int not null,
bonus_count int default 0 not null,
last_update_date datetime default '2018-01-01 00:00:00' not null,
is_watched int default 0 not null,
is_finished int default 0 not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci;

View File

@@ -0,0 +1,42 @@
CREATE TABLE chusan_game_login_bonus_preset
(
id INTEGER NOT NULL,
version INTEGER NOT NULL,
preset_name VARCHAR(255) NOT NULL,
is_enabled INTEGER DEFAULT 1,
PRIMARY KEY (
id
)
);
CREATE TABLE chusan_game_login_bonus
(
id INTEGER NOT NULL,
version INTEGER NOT NULL,
preset_id INTEGER NOT NULL,
login_bonus_id INTEGER NOT NULL,
login_bonus_name VARCHAR(255) NOT NULL,
present_id INTEGER NOT NULL,
present_name VARCHAR(255) NOT NULL,
item_num INTEGER NOT NULL,
need_login_day_count INTEGER NOT NULL,
login_bonus_category_type INTEGER NOT NULL,
PRIMARY KEY (
id
)
);
CREATE TABLE chusan_user_login_bonus
(
id INTEGER NOT NULL,
user INTEGER NOT NULL,
version INTEGER NOT NULL,
preset_id INTEGER NOT NULL,
bonus_count INTEGER NOT NULL DEFAULT 0,
last_update_date DATETIME NOT NULL default '2018-01-01 00:00:00.0',
is_watched INTEGER DEFAULT 0,
is_finished INTEGER DEFAULT 0,
PRIMARY KEY (
id
)
);