install.sql 1.2 KB

1234567891011121314151617181920
  1. CREATE TABLE IF NOT EXISTS `__PREFIX__withdraw` (
  2. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  3. `user_id` int(10) unsigned DEFAULT '0' COMMENT '会员ID',
  4. `money` decimal(10,2) unsigned DEFAULT '0.00' COMMENT '金额',
  5. `handingfee` decimal(10,2) unsigned DEFAULT '0.00' COMMENT '手续费',
  6. `taxes` decimal(10,2) unsigned DEFAULT '0.00' COMMENT '税费',
  7. `type` varchar(50) DEFAULT '' COMMENT '类型',
  8. `account` varchar(100) DEFAULT '' COMMENT '提现账户',
  9. `name` varchar(100) DEFAULT '' COMMENT '真实姓名',
  10. `memo` varchar(255) DEFAULT NULL COMMENT '备注',
  11. `orderid` varchar(50) DEFAULT '' COMMENT '订单号',
  12. `transactionid` varchar(50) DEFAULT '' COMMENT '流水号',
  13. `status` enum('created','successed','rejected') DEFAULT 'created' COMMENT '状态:created=申请中,successed=成功,rejected=已拒绝',
  14. `transfertime` int(10) DEFAULT NULL COMMENT '转账时间',
  15. `createtime` int(10) DEFAULT NULL COMMENT '添加时间',
  16. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  17. PRIMARY KEY (`id`)
  18. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='提现表';
  19. ALTER TABLE `__PREFIX__withdraw` ADD COLUMN `name` varchar(100) NULL DEFAULT '' COMMENT '真实姓名' AFTER `account`;