From d328ac666aff678be30da50b6693f2ec41c70ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E7=91=9E=E8=B6=85?= <281809423@qq.com> Date: Mon, 12 Oct 2020 08:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=B8=E5=9E=8B=E6=A1=88?= =?UTF-8?q?=E4=BE=8B=E8=A1=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/business_20201010.sql | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sql/business_20201010.sql b/sql/business_20201010.sql index 870e78095..100725181 100644 --- a/sql/business_20201010.sql +++ b/sql/business_20201010.sql @@ -43,4 +43,22 @@ create table contract ( update_time datetime comment '更新时间', remark varchar(255) default null comment '备注', primary key (id) -) engine=innodb auto_increment=10 comment = '合同表'; \ No newline at end of file +) engine=innodb auto_increment=10 comment = '合同表'; + + +-- ---------------------------- +-- 3、 典型案例代码生成业务表字段 +-- ---------------------------- +drop table if exists typical_case; +create table typical_case ( + id int(4) not null auto_increment comment 'ID', + title varchar(50) not null comment '标题', + introduction text not null comment '简介', + content text not null comment '详情内容', + hits int (6) comment '点击量', + 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 = '典型案例表'; \ No newline at end of file