53 lines
2.5 KiB
SQL
53 lines
2.5 KiB
SQL
|
|
-- ----------------------------
|
|
-- Title:小程序表
|
|
-- Author:laa
|
|
-- Table:lc_app
|
|
-- ---------------------------
|
|
drop table if exists lc_app;
|
|
create table lc_app (
|
|
id int(11) not null auto_increment,
|
|
name char(30) not null default '' comment '名称',
|
|
logo varchar(128) not null default '' comment 'logo',
|
|
jsondata text comment '更多数据',
|
|
c_time int(10) not null default '0' comment '创建时间',
|
|
u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
|
|
primary key (id)
|
|
) engine=innodb default CHARSET=utf8mb4 comment='小程序表';
|
|
|
|
|
|
-- ----------------------------
|
|
-- Title:app配置表
|
|
-- Author:xxb
|
|
-- Table:lc_app_config
|
|
-- ---------------------------
|
|
drop table if exists lc_app_config;
|
|
create table lc_app_config (
|
|
id int(10) unsigned not null auto_increment comment '自增id',
|
|
app_id int unsigned not null default 0 comment '小程序id',
|
|
title varchar(128) not null default '' comment '标题',
|
|
k varchar(32) not null comment '配置key',
|
|
v json default null comment '配置数据',
|
|
admin_id int unsigned not null default 0 comment '操作员ID',
|
|
c_time int(10) unsigned not null default '0' comment '创建时间',
|
|
u_time timestamp not null default current_timestamp on update current_timestamp,
|
|
primary key (id)
|
|
) engine=innodb default charset=utf8mb4 comment='app配置表';
|
|
|
|
|
|
-- ----------------------------
|
|
-- Title:支付回调日志
|
|
-- Author:lcc
|
|
-- Table:lc_app_wxpaylog
|
|
-- ---------------------------
|
|
drop table if exists lc_app_wxpaylog;
|
|
create table lc_app_wxpaylog (
|
|
id int(11) unsigned not null auto_increment comment '自增id',
|
|
app_id int(10) unsigned not null default '1' comment '小程序id',
|
|
sid varchar(32) not null comment '订单号',
|
|
trade_no varchar(32) not null comment '支付流水号',
|
|
notify_param text comment '回调参数',
|
|
u_time timestamp not null default current_timestamp comment '更新时间',
|
|
primary key (id)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='支付回调日志';
|