修改表

This commit is contained in:
huangdeliang
2020-11-28 11:34:40 +08:00
parent 06f2f84100
commit a3a8fae363
3 changed files with 49 additions and 3 deletions

View File

@ -712,6 +712,7 @@ create table sys_order (
order_id bigint(20) not null auto_increment comment '编号', order_id bigint(20) not null auto_increment comment '编号',
customer varchar(30) not null comment '客户姓名', customer varchar(30) not null comment '客户姓名',
phone varchar(30) comment '电话', phone varchar(30) comment '电话',
weight decimal(10,2) comment '体重',
review_status varchar(10) default 'no' comment '审核状态', review_status varchar(10) default 'no' comment '审核状态',
pay_type_id bigint(20) comment '收款方式ID', pay_type_id bigint(20) comment '收款方式ID',
pre_sale_id bigint(20) comment '售前ID', pre_sale_id bigint(20) comment '售前ID',
@ -726,11 +727,13 @@ create table sys_order (
serve_month tinyint comment '服务月数', serve_month tinyint comment '服务月数',
amount decimal(10,2) comment '金额', amount decimal(10,2) comment '金额',
order_time datetime comment '成交日期', order_time datetime comment '成交日期',
start_time datetime comment '起始日期',
create_by varchar(64) default '' comment '创建者', create_by varchar(64) default '' comment '创建者',
create_time datetime comment '创建时间', create_time datetime comment '创建时间',
update_by varchar(64) default '' comment '更新者', update_by varchar(64) default '' comment '更新者',
update_time datetime comment '更新时间', update_time datetime comment '更新时间',
remark varchar(500) default null comment '备注', remark varchar(500) default null comment '备注',
primary key (order_id) primary key (order_id)
) engine=innodb auto_increment=1 comment = '销售订单表'; ) engine=innodb auto_increment=1 comment = '销售订单表';
@ -760,3 +763,46 @@ create table sys_order (
primary key (id) primary key (id)
) engine=innodb auto_increment=1 comment = '合同表'; ) engine=innodb auto_increment=1 comment = '合同表';
-- ----------------------------
-- 22、微信用户信息表字段
-- ----------------------------
drop table if exists sys_wx_user_info;
create table sys_wx_user_info (
openid varchar(100) not null comment '微信openid',
nick_name varchar(30) comment '昵称',
phone varchar(30) comment '电话',
avatar_url varchar(255) comment '用户头像',
gender tinyint comment '性别',
path varchar(255) comment '文件路径',
city varchar(16) comment '城市',
province varchar(16) comment '省份',
country varchar(16) comment '国家',
create_by varchar(64) default '' comment '创建者',
create_time datetime comment '创建时间',
update_by varchar(64) default '' comment '更新者',
update_time datetime comment '更新时间',
remark varchar(500) default null comment '备注',
primary key (openid)
) engine=innodb comment = '微信用户表';
-- ----------------------------
-- 23、微信小程序打卡表字段
-- ----------------------------
drop table if exists sys_wx_user_log;
create table sys_wx_user_log (
openid varchar(100) not null comment '微信openid',
weight decimal(10,2) comment '体重',
sleep_time datetime comment '睡觉时间',
wakeup_time datetime comment '起床时间',
sport tinyint comment '运动情况',
diet tinyint comment '饮食情况',
sleep_quality tinyint comment '睡眠质量',
defecation tinyint comment '排便情况',
water tinyint comment '饮水量',
create_by varchar(64) default '' comment '创建者',
create_time datetime comment '创建时间',
update_by varchar(64) default '' comment '更新者',
update_time datetime comment '更新时间',
remark varchar(500) default null comment '备注',
primary key (openid)
) engine=innodb comment = '微信用户记录';

View File

@ -82,8 +82,8 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://localhost:3306/stdiet?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://47.115.23.82:3306/stdiet_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
password: wonderdb password: Ttj4fAHU
username: root username: root
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<!-- 日志存放路径 --> <!-- 日志存放路径 -->
<property name="log.path" value="/Users/wonder/Documents/Workspaces/node/ShengtangMange/running/logs" /> <property name="log.path" value="/Users/wonder/Documents/Workspaces/java/ShengtangMange/running/logs" />
<!-- 日志输出格式 --> <!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />