代码拉取完成,页面将自动刷新
同步操作将从 wangxy/Learning 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
create table answer
(
id bigint auto_increment comment '答案ID'
primary key,
content varchar(1000) not null comment '内容',
user_name varchar(20) not null comment '用户名',
question_id bigint not null comment '问题ID',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '答案';
create table category
(
id int auto_increment comment '分类ID'
primary key,
name varchar(20) not null comment '名称',
parent_id int not null comment '父级ID',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '分类';
create table category_course
(
id bigint auto_increment comment '分类-课程关系ID'
primary key,
category_id int not null comment '分类ID',
course_id bigint not null comment '课程ID'
);
create table chapter
(
id bigint auto_increment comment '章节ID'
primary key,
title varchar(100) not null comment '标题',
type varchar(10) not null comment '内容类型',
video_url varchar(255) null comment '视频链接',
video_time varchar(20) null comment '视频时长',
text_content text null comment '文字内容',
course_id bigint not null comment '课程ID',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '章节';
create table course
(
id bigint auto_increment comment '课程ID'
primary key,
name varchar(100) not null comment '名称',
price decimal(10,2) not null comment '价格',
description varchar(200) not null comment '简介',
user_name varchar(20) not null comment '用户名',
average_score tinyint not null comment '平均评分',
cover_picture varchar(100) not null comment '封面图片地址',
approved tinyint not null comment '审核通过',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '课程';
create table evaluation
(
id bigint auto_increment comment '评价ID'
primary key,
score tinyint not null comment '评分',
comment varchar(255) not null comment '评论',
user_name varchar(20) not null comment '用户名',
course_id bigint not null comment '课程ID',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '评价';
create table note
(
id bigint auto_increment comment '笔记ID'
primary key,
content text not null comment '内容',
user_name varchar(20) not null comment '用户名',
course_id bigint not null comment '课程ID',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '笔记';
create table `order`
(
id bigint auto_increment
primary key,
trade_no varchar(40) not null comment '交易编号',
price decimal(10,2) not null comment '价格',
user_name varchar(255) not null comment '买家',
product_id bigint not null comment '商品ID',
product_name varchar(255) not null comment '商品名称',
close_milliseconds bigint not null comment '关闭时间',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '更新时间',
status tinyint not null comment '状态:0->未支付 1->已支付 2->已关闭'
)
comment '订单';
create table question
(
id bigint auto_increment comment '问题ID'
primary key,
title varchar(255) not null comment '标题',
content varchar(1000) not null comment '内容',
user_name varchar(20) not null comment '用户名',
course_id bigint not null comment '课程ID',
answer_count int not null comment '答案数量',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '更新时间'
)
comment '问题';
create table role
(
id int auto_increment comment '主键ID'
primary key,
name varchar(20) not null comment '角色名',
create_time datetime not null comment '创建时间',
update_time datetime null comment '更新时间'
)
comment '角色';
create table user
(
id bigint auto_increment comment '主键ID'
primary key,
username varchar(20) not null comment '用户名',
password varchar(100) not null comment '密码',
full_name varchar(20) null comment '姓名',
gender char(2) null comment '性别',
role_id int not null comment '角色ID',
email_address varchar(100) not null comment '邮箱地址',
phone_number varchar(100) null comment '手机号码',
profile_picture varchar(100) null comment '头像链接',
create_time datetime not null comment '创建时间',
update_time datetime not null comment '修改时间'
)
comment '用户';
create table user_chapter
(
id bigint auto_increment comment '用户-章节关系ID'
primary key,
user_name varchar(20) not null comment '用户名',
chapter_id bigint not null comment '章节ID'
);
create table user_course
(
id bigint auto_increment comment '用户-课程关系ID'
primary key,
user_name varchar(20) not null comment '用户名',
course_id bigint not null comment '课程ID'
);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。