| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- DROP TABLE if exists `merchant_order`;
- create table `merchant_order` (
- `id` int(10) NOT NULL AUTO_INCREMENT,
- `order_name` varchar(30) NOT NULL default '' COMMENT '订单名',
- `del_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识',
- `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
- `update_user` varchar(45) DEFAULT NULL COMMENT '更新人',
- `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_user` varchar(45) DEFAULT NULL COMMENT '创建人',
- `user_id` int(10) DEFAULT NULL COMMENT '用户',
- `order_code` varchar(45) DEFAULT NULL COMMENT '订单编码',
- `specification` varchar(45) DEFAULT NULL COMMENT '规格',
- `description` varchar(600) default null comment '订单描述',
- `unit_price` decimal(10,2) DEFAULT NULL COMMENT '单价',
- `quantity` int(10) DEFAULT NULL COMMENT '数量',
- `user_coupon_id` int(10) DEFAULT NULL COMMENT '优惠券',
- `off_price` decimal(10,2) DEFAULT NULL COMMENT '优惠金额',
- `totle_price` decimal(10,2) DEFAULT NULL COMMENT '总价',
- `deal_price` decimal(10,2) DEFAULT NULL COMMENT '成交价',
- `pay_mode` int(4) DEFAULT '0' COMMENT '支付方式',
- `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `show_flag` char(1) DEFAULT 'Y' COMMENT '显示标识',
- `status_flag` int(4) DEFAULT '0' COMMENT '状态',
- `fee` decimal(10,2) DEFAULT NULL COMMENT '手续费',
- `coin` decimal(10,2) DEFAULT NULL COMMENT '余额',
- `point` decimal(10,2) DEFAULT NULL COMMENT '积分',
- `cash` decimal(10,2) DEFAULT NULL COMMENT '现金',
- `cancel_reason` varchar(255) DEFAULT NULL COMMENT '取消原因',
- `confirm_time` datetime DEFAULT NULL COMMENT '确认时间',
- `old_status` int(4) DEFAULT NULL COMMENT '退款前状态',
- `refund_status` int(4) DEFAULT NULL COMMENT '退款状态',
- `album_count` int(10) DEFAULT 0 comment '相册数',
- PRIMARY KEY (`id`)
- )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='签约商户订单';
- DROP TABLE if exists `merchant_order_img`;
- create table `merchant_order_img` (
- `id` int(10) NOT NULL AUTO_INCREMENT,
- `del_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识',
- `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
- `update_user` varchar(45) DEFAULT NULL COMMENT '更新人',
- `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_user` varchar(45) DEFAULT NULL COMMENT '创建人',
- `order_id` int(10) DEFAULT NULL COMMENT '订单',
- `user_id` int(10) DEFAULT NULL COMMENT '创建人ID',
- `local_path` varchar(300) DEFAULT NULL COMMENT '本地地址',
- `size` decimal(10,0) DEFAULT '0' COMMENT '原片大小',
- `full_name` varchar(300) DEFAULT NULL COMMENT '全名',
- `op_user` int(10) DEFAULT NULL COMMENT '运营人员',
- `status_flag` int(4) DEFAULT '0' COMMENT '状态',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `image_name` varchar(255) DEFAULT NULL COMMENT '图片名称',
- `clean_flag` char(1) DEFAULT 'N' COMMENT '是否清理OSS',
- `business_type` int(1) not null comment '业务类型',
- PRIMARY KEY (`id`)
- )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='签约商户订单交易图片';
- DROP TABLE if exists `merchant_order_checklink`;
- create table `merchant_order_checklink` (
- `id` int(10) NOT NULL AUTO_INCREMENT,
- `del_flag` char(1) NOT NULL DEFAULT 'N' COMMENT '删除标识',
- `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
- `update_user` varchar(45) DEFAULT NULL COMMENT '更新人',
- `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- `create_user` varchar(45) DEFAULT NULL COMMENT '创建人',
- `title` varchar(45) DEFAULT NULL COMMENT '标题',
- `order_id` int(10) DEFAULT NULL COMMENT '订单',
- `user_id` int(10) DEFAULT NULL COMMENT '创建人ID',
- `check_link` varchar(300) DEFAULT NULL COMMENT '审核地址',
- `verify_code` varchar(6) DEFAULT NULL COMMENT '审核验证码',
- `status_flag` int(4) DEFAULT '0' COMMENT '状态',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `check_times` int(2) DEFAULT '0' comment '审片次数',
- PRIMARY KEY (`id`)
- )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='签约商户订单审核链接';
- alter table sys_user add user_type int(1) default '0' comment '用户类型';
- alter table sys_user add unit_price decimal(10, 2) default '0' comment '单价';
- alter table sys_user add contract_starttime timestamp DEFAULT '0000-00-00 00:00:00' comment '合约生效日期';
- alter table sys_user add contract_endtime timestamp DEFAULT '0000-00-00 00:00:00' comment '合约结束日期';
- alter table sys_user add relate_users varchar(1000) default null comment '关联人员';
|