rt-sim-training-service/sql/20210312-zhangsai.sql

44 lines
1.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- auto-generated definition
create table cgy_record
(
id int not null
primary key,
browse_count int null comment '浏览次数',
download_count int null comment '百度网盘链接打开次数'
)
comment '成都工业项目使用记录';
-- 课程表删city_code
alter table ls_lesson drop column city_code;
-- 组织表添加字段
alter table org
add creator_id bigint not null comment '创建者';
alter table org
add create_time datetime default current_timestamp not null comment '创建时间';
alter table org
add update_id bigint null comment '更新者';
alter table org
add update_time datetime null comment '更新时间';
-- 添加组织评价规则表
CREATE TABLE `org_scoring_rule` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`org_id` int(11) NOT NULL COMMENT '组织班级id',
`school_year` varchar(16) NOT NULL COMMENT '学年',
`term` int(1) NOT NULL COMMENT '学期',
`usual_scoring_rule` text COMMENT '平时分评分规则',
`final_scoring_rule` text COMMENT '期末分评分规则',
`creator_id` bigint(20) NOT NULL COMMENT '创建人id',
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_id` bigint(20) DEFAULT NULL COMMENT '更新者id',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='组织评分规则';