drop table if exists sms_switch;

/*==============================================================*/
/* Table: sms_switch                                            */
/*==============================================================*/
create table sms_switch
(
   id                   bigint not null auto_increment comment '主键',
   func_code            varchar(255) comment '功能编码',
   is_send              tinyint(1) comment '是否发送',
   created_at           datetime comment '创建时间',
   created_by           bigint comment '创建人',
   deleted_at           datetime comment '删除时间',
   deleted_by           bigint comment '删除人',
   primary key (id)
);

alter table sms_switch comment '短信服务开关';


drop table if exists refund;

/*==============================================================*/
/* Table: refund                                                */
/*==============================================================*/
create table refund
(
   id                   bigint not null auto_increment comment '主键',
   operator_name        varchar(255) comment '退款操作人姓名',
   operation_time       datetime comment '退款操作时间',
   refund_amount        decimal(18,2) comment '退款金额',
   username             varchar(255) comment '用户名',
   order_number         varchar(255) comment '订单编号',
   description          varchar(255) comment '描述',
   created_at           datetime comment '创建时间',
   created_by           bigint comment '创建人',
   deleted_at           datetime comment '删除时间',
   deleted_by           bigint comment '删除人',
   primary key (id)
);

alter table refund comment '退款';


drop table if exists partner;

/*==============================================================*/
/* Table: partner                                               */
/*==============================================================*/
create table partner
(
   id                   bigint not null auto_increment comment '主键',
   partner_name         varchar(255) not null comment '合作伙伴名称',
   contact              varchar(255) comment '联系人',
   phone                varchar(255) comment '手机号',
   email                varchar(255) comment '电子邮箱',
   address              varchar(255) comment '地址',
   description          text comment '描述',
   created_at           datetime comment '创建时间',
   created_by           bigint comment '创建人',
   deleted_at           datetime comment '删除时间',
   deleted_by           bigint comment '删除人',
   primary key (id)
);

alter table partner comment '合作伙伴';