Commit d2bd5c1d by zong

11111

parent 184e8845
......@@ -471,6 +471,7 @@ CREATE TABLE IF NOT EXISTS volunteer_event_dat(
venue text NOT NULL,
venue_time timestamp NOT NULL,
status varchar(64) NOT NULL DEFAULT 'NEW',
is_recommend tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
......@@ -566,6 +567,8 @@ CREATE TABLE IF NOT EXISTS course_media_dat(
is_free tinyint(1) NOT NULL DEFAULT '0',
price float(5,2) NOT NULL DEFAULT '0',
view_count int8 NOT NULL DEFAULT '0',
is_top tinyint(1) NOT NULL DEFAULT '0',
is_recommend tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
......@@ -613,6 +616,7 @@ CREATE TABLE IF NOT EXISTS course_mst(
front_image nxiang NOT NULL,
teacher_name varchar(128) NOT NULL,
teacher_profile text,
price float(5,2) NOT NULL DEFAULT '0',
media_count int4 NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
......@@ -686,4 +690,57 @@ CREATE TABLE IF NOT EXISTS user_donation_dat(
Create INDEX user_donation_dat_user_id_idx ON user_donation_dat(user_id);
Create INDEX user_donation_dat_donation_id_idx ON user_donation_dat(donation_id);
##----faq_dat create
DROP TABLE IF EXISTS faq_dat;
CREATE TABLE IF NOT EXISTS faq_dat(
id bigint unsigned NOT NULL PRIMARY KEY auto_increment,
registration_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
user_id int8 NOT NULL,
content text NOT NULL,
images text,
reply_count int8 NOT NULL DEFAULT '0',
best_detail_id int8 NOT NULL DEFAULT '0',
best_detail_content text,
is_top tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
Create INDEX faq_dat_user_id_idx ON faq_dat(user_id);
##----faq_detail_dat create
DROP TABLE IF EXISTS faq_detail_dat;
CREATE TABLE IF NOT EXISTS faq_detail_dat(
id bigint unsigned NOT NULL PRIMARY KEY auto_increment,
registration_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
faq_id int8 NOT NULL,
user_id int8 NOT NULL,
content text NOT NULL,
is_best tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
Create INDEX faq_detail_dat_user_id_idx ON faq_detail_dat(user_id);
Create INDEX faq_detail_dat_faq_id_idx ON faq_detail_dat(faq_id);
##----news_dat create
DROP TABLE IF EXISTS news_dat;
CREATE TABLE IF NOT EXISTS news_dat(
id bigint unsigned NOT NULL PRIMARY KEY auto_increment,
registration_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
title text NOT NULL,
content text NOT NULL,
front_image_big text,
front_image_small text,
read_count int8 NOT NULL DEFAULT '0',
account_title varchar(64) NOT NULL,
account_id int8 NOT NULL DEFAULT '0',
level_id tinyint(1) NOT NULL DEFAULT '0',
is_top tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment