2021-03-12 11:03:10 +08:00
|
|
|
|
-- auto-generated definition
|
|
|
|
|
create table cgy_record
|
|
|
|
|
(
|
|
|
|
|
id int not null
|
|
|
|
|
primary key,
|
|
|
|
|
browse_count int null comment '浏览次数',
|
|
|
|
|
download_count int null comment '百度网盘链接打开次数'
|
|
|
|
|
)
|
|
|
|
|
comment '成都工业项目使用记录';
|
|
|
|
|
|
2021-03-19 15:56:52 +08:00
|
|
|
|
-- 课程表删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='组织评分规则';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|