2020-10-15 21:43:40 +08:00
|
|
|
|
-- 1、服务组织表
|
2020-10-10 17:11:10 +08:00
|
|
|
|
drop table if exists service_organization;
|
|
|
|
|
|
create table service_organization (
|
2020-10-15 21:43:40 +08:00
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
2020-10-13 09:16:13 +08:00
|
|
|
|
name varchar(120) not null comment '企业名称',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
contacts varchar(50) not null comment '联系人',
|
2020-10-10 17:11:10 +08:00
|
|
|
|
phone varchar(12) not null comment '联系电话',
|
|
|
|
|
|
license_url varchar(500) not null comment '营业执照图片地址(多个地址用,分隔)',
|
|
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
content text not null comment '机构详情内容',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
hits int (6) default 0 comment '点击量',
|
2020-10-21 17:42:35 +08:00
|
|
|
|
audit_status char(1) default '0' comment '状态(0:待审核,1:审核不通过,2:审核通过)',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
picture_url varchar(500) not null comment '图片地址(多个地址用,分隔)',
|
|
|
|
|
|
status char(1) default '0' comment '状态(0正常 1停用)',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
2020-10-10 17:11:10 +08:00
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
check_by varchar(64) default '' comment '审核者',
|
|
|
|
|
|
check_time datetime comment '审核时间',
|
|
|
|
|
|
remark varchar(255) default null comment '备注',
|
|
|
|
|
|
primary key (id)
|
2020-10-10 17:53:45 +08:00
|
|
|
|
) engine=innodb auto_increment=10 comment = '服务组织表';
|
|
|
|
|
|
|
2020-10-15 21:43:40 +08:00
|
|
|
|
-- 2、 合同分类表
|
|
|
|
|
|
drop table if exists contract_type;
|
|
|
|
|
|
create table contract_type (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
name varchar(50) not null comment '分类名称',
|
2020-11-03 09:17:00 +08:00
|
|
|
|
english_name varchar(50) not null comment '英文名称',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
remark varchar(255) default null comment '备注',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '合同分类表';
|
|
|
|
|
|
|
|
|
|
|
|
-- 3、 合同模板表
|
|
|
|
|
|
drop table if exists contract_template;
|
|
|
|
|
|
create table contract_template (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
type varchar(100) not null comment '合同分类id(contract_type表主键id)',
|
2020-10-10 17:53:45 +08:00
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
content text not null comment '详情内容',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
hits int (6) default 0 comment '点击量',
|
2020-11-03 18:25:46 +08:00
|
|
|
|
enclosure_name varchar(60) not null comment '附件名称',
|
|
|
|
|
|
enclosure_url varchar(500) not null comment '附件地址',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
status char(1) default '0' comment '状态(0正常 1停用)',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
2020-10-10 17:53:45 +08:00
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
remark varchar(255) default null comment '备注',
|
|
|
|
|
|
primary key (id)
|
2020-10-15 21:43:40 +08:00
|
|
|
|
) engine=innodb auto_increment=10 comment = '合同模板表';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 4、 典型案例表
|
|
|
|
|
|
drop table if exists classsic_cases;
|
|
|
|
|
|
create table classsic_cases (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
content text not null comment '详情内容',
|
|
|
|
|
|
type varchar(100) not null comment '案例类型(来至于字典表)',
|
|
|
|
|
|
hits int (6) default 0 comment '点击量',
|
|
|
|
|
|
picture_url varchar(500) not null comment '图片地址(多个地址用,分隔)',
|
|
|
|
|
|
status char(1) default '0' comment '状态(0正常 1停用)',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '典型案例表';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 5、 线上课程代表
|
|
|
|
|
|
drop table if exists online_courses;
|
|
|
|
|
|
create table online_courses (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
hits int (6) default 0 comment '点击量',
|
|
|
|
|
|
target_people varchar(64) not null comment '针对人群',
|
|
|
|
|
|
courses_duration varchar(12) not null comment '视频课程时长',
|
|
|
|
|
|
courses_level int (1) not null comment '课程难度等级',
|
|
|
|
|
|
picture_url varchar(500) not null comment '图片地址(多个地址用,分隔)',
|
|
|
|
|
|
video_url varchar(500) not null comment '视频地址(多个地址用,分隔)',
|
|
|
|
|
|
status char(1) default '0' comment '状态(0正常 1停用)',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '线上课程表';
|
2020-10-12 08:53:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 21:43:40 +08:00
|
|
|
|
-- 6、 线上课程评价表
|
2020-11-06 09:46:13 +08:00
|
|
|
|
DROP TABLE IF EXISTS `online_courses_evaluate`;
|
|
|
|
|
|
CREATE TABLE `online_courses_evaluate` (
|
|
|
|
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
|
|
`online_courses_id` bigint(20) NOT NULL COMMENT '线上课程ID',
|
|
|
|
|
|
`evaluate_content` varchar(1500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '评价内容',
|
|
|
|
|
|
`anonymous_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '匿名标志(0匿名 1用户)',
|
|
|
|
|
|
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)',
|
|
|
|
|
|
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
|
|
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
|
|
|
|
|
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
|
|
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
|
`audit_status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0:待审核,1:审核不通过,2:审核通过)',
|
|
|
|
|
|
`check_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审核者',
|
|
|
|
|
|
`check_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
|
|
|
|
|
|
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '线上课程评价表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
2020-10-15 21:43:40 +08:00
|
|
|
|
|
|
|
|
|
|
-- 7、 新闻动态表
|
|
|
|
|
|
drop table if exists news_information;
|
|
|
|
|
|
create table news_information (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
2020-10-12 08:53:02 +08:00
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
content text not null comment '详情内容',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
hits int (6) default 0 comment '点击量',
|
|
|
|
|
|
status char(1) default '0' comment '状态(0正常 1停用)',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '新闻动态表';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 8、在线留言表
|
|
|
|
|
|
drop table if exists online_message;
|
|
|
|
|
|
create table online_message (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
name varchar(50) not null comment '姓名',
|
|
|
|
|
|
email varchar(32) not null comment '邮箱',
|
|
|
|
|
|
contact_information varchar(32) not null comment '联系方式',
|
|
|
|
|
|
message_content varchar(1200) not null comment '留言内容',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '在线留言表';
|
|
|
|
|
|
|
|
|
|
|
|
-- 9、联系方式表
|
|
|
|
|
|
drop table if exists contact_information;
|
|
|
|
|
|
create table contact_information (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
address varchar(150) not null comment '机构地址',
|
|
|
|
|
|
service_phone varchar(32) not null comment '服务电话',
|
|
|
|
|
|
supervise_phone varchar(32) not null comment '监督电话',
|
|
|
|
|
|
supervise_dept varchar(32) not null comment '监督部门',
|
|
|
|
|
|
email varchar(32) not null comment '邮箱',
|
|
|
|
|
|
service_date varchar(64) not null comment '服务时间',
|
|
|
|
|
|
copyright varchar(64) not null comment '版权所有',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '联系方式表';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 10、法律服务表
|
|
|
|
|
|
drop table if exists legal_services;
|
|
|
|
|
|
create table legal_services (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
name varchar(12) not null comment '服务名称',
|
|
|
|
|
|
address varchar(120) not null comment '地址',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '法律服务表';
|
|
|
|
|
|
|
|
|
|
|
|
-- 11、 常见问题表
|
|
|
|
|
|
drop table if exists common_problem;
|
|
|
|
|
|
create table common_problem (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
title varchar(50) not null comment '标题',
|
2020-11-05 20:40:48 +08:00
|
|
|
|
content text not null comment '问题描述内容',
|
|
|
|
|
|
explains text not null comment '内容',
|
2020-10-15 21:43:40 +08:00
|
|
|
|
hits int (6) default 0 comment '点击量',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '常见问题表';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 12、 活动招募表
|
|
|
|
|
|
drop table if exists event_recruitment;
|
|
|
|
|
|
create table event_recruitment (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
title varchar(50) not null comment '标题',
|
|
|
|
|
|
introduction text not null comment '简介',
|
|
|
|
|
|
activity_time varchar(32) comment '活动时间',
|
|
|
|
|
|
address varchar(120) not null comment '地址',
|
|
|
|
|
|
organizer varchar(120) not null comment '主办单位',
|
|
|
|
|
|
picture_url varchar(120) not null comment '图片地址',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
2020-10-12 08:53:02 +08:00
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
2020-10-15 21:48:05 +08:00
|
|
|
|
) engine=innodb auto_increment=10 comment = '活动招募表';
|
|
|
|
|
|
|
|
|
|
|
|
-- 13、首页轮播图表
|
|
|
|
|
|
drop table if exists home_page_carousel;
|
|
|
|
|
|
create table home_page_carousel (
|
|
|
|
|
|
id bigint(20) not null auto_increment comment 'ID',
|
|
|
|
|
|
picture_url varchar(120) not null comment '图片地址',
|
|
|
|
|
|
del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
|
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
|
|
update_by varchar(64) default '' comment '更新者',
|
|
|
|
|
|
update_time datetime comment '更新时间',
|
|
|
|
|
|
primary key (id)
|
|
|
|
|
|
) engine=innodb auto_increment=10 comment = '首页轮播图表';
|