You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

72 lines
3.2 KiB

DROP TABLE IF EXISTS `oct_request_log`;
DROP TABLE IF EXISTS `oct_user_log`;
DROP TABLE IF EXISTS `oct_sync_book_dateil_log`;
/*==============================================================*/
/* Table: oct_request_log */
/*==============================================================*/
create table oct_request_log
(
id bigint(32) not null auto_increment comment 'id',
partner_id varchar(32) not null comment '侨城汇唯一标识',
source int(20) comment '请求来源',
data text default '' comment '原始报文',
message varchar(255) default '' comment '校验结果',
client_ip varchar(255) default '' comment '请求ip',
created_at bigint(20) default 0 comment '创建时间',
created_by varchar(32) comment '创建人',
remark varchar(255) default '' comment '备注',
del_flag tinyint default 0 comment '删除标识:0-正常,1-已删除',
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
alter table oct_request_log comment '侨城汇请求数据日志';
/*==============================================================*/
/* Table: oct_user_log */
/*==============================================================*/
create table oct_user_log
(
id bigint(32) not null auto_increment comment 'id',
user_id varchar(32) not null comment '用户id',
partner_id varchar(32) not null comment '侨城汇唯一标识',
opt_type int(20) comment '操作类型',
client_ip varchar(255) default '' comment '请求ip',
created_at bigint(20) default 0 comment '创建时间',
event varchar(255) default '' comment '请求日志',
remark varchar(255) default '' comment '备注',
del_flag tinyint default 0 comment '删除标识:0-正常,1-已删除',
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
alter table oct_user_log comment '侨城汇用户操作日志';
/*==============================================================*/
/* Table: oct_sync_book_dateil_log */
/*==============================================================*/
CREATE TABLE `oct_sync_book_dateil_log` (
`id` INT (32) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`partner_id` VARCHAR (32) NOT NULL COMMENT '侨城汇唯一标识',
`card_no` VARCHAR (32) NOT NULL COMMENT '服务卡编号',
`status` TINYINT (2) DEFAULT '0' COMMENT '预约单状态',
`created_at` BIGINT (20) DEFAULT '0' COMMENT '创建时间',
`created_by` VARCHAR (32) DEFAULT '' COMMENT '创建人',
`data` TEXT DEFAULT '' COMMENT '请求参数',
`message` TEXT DEFAULT '' COMMENT '返回消息',
PRIMARY KEY (`id`)
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4;
ALTER TABLE oct_sync_book_dateil_log COMMENT '侨城汇预约单反馈日志';
/*==============================================================*/
/* Table: user */
/*==============================================================*/
alter table user
add column oct_user_id varchar(50) DEFAULT '' comment '侨城汇用户唯一标识';