--  退款转赠添加  --
ALTER TABLE kylin_performance_status ADD is_transfer tinyint DEFAULT 0 COMMENT '是否支持转赠';
ALTER TABLE kylin_performance_status ADD transfer_start_time datetime NULL DEFAULT NULL COMMENT '转赠开启时间';
ALTER TABLE kylin_performance_status ADD transfer_end_time datetime NULL DEFAULT NULL COMMENT '转赠结束时间';

ALTER TABLE kylin_order_ticket_relations ADD transfer_uid varchar(255) DEFAULT "" COMMENT '转赠用户id';

drop table if exists kylin_order_task;
create table kylin_order_task
(
    mid        bigint unsigned auto_increment primary key,
    order_id    varchar(64) default '',
    status    int(3) comment '状态 [10-转赠订单可失效]',
    created_at datetime ,
    updated_at datetime ,
    comment    text
) engine = InnoDB comment '订单定时任务表';