Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
d2bd5c1d
Commit
d2bd5c1d
authored
4 years ago
by
zong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11111
parent
184e8845
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
compass_db_schema.txt
doc/DB/compass_db_schema.txt
+57
-0
No files found.
doc/DB/compass_db_schema.txt
View file @
d2bd5c1d
...
...
@@ -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;
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment