18_20240717.sql 6.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ALTER TABLE member_user
  2. ADD COLUMN `alipay_account` VARCHAR(255) default null COMMENT '支付宝账号',
  3. ADD COLUMN `alipay_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci default null COMMENT '支付宝名称',
  4. ADD COLUMN `bank_name` VARCHAR(255) default null COMMENT '开户行名称',
  5. ADD COLUMN `account_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci default null COMMENT '开户名',
  6. ADD COLUMN `bank_account` VARCHAR(255) default null COMMENT '银行账号';
  7. CREATE TABLE `distri_application_for_withdrawal` (
  8. `id` bigint NOT NULL AUTO_INCREMENT COMMENT '申请id',
  9. `user_id` bigint NOT NULL COMMENT '用户ID',
  10. `withdrawal_type` tinyint NOT NULL COMMENT '提现渠道类型',
  11. `amount` bigint NOT NULL COMMENT '提现金额,单位:元',
  12. `withdrawal_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '提现账号',
  13. `status` tinyint DEFAULT '0' COMMENT '提现状态,成功是1, 失败是2, 提现中为0',
  14. `application_for_withdrawal_channel_id` bigint NOT NULL COMMENT '提现渠道记录id',
  15. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '创建者',
  16. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  17. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '更新者',
  18. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  19. `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  20. PRIMARY KEY (`id`) USING BTREE
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='提现申请记录表';
  22. CREATE TABLE `distri_application_for_withdrawal_channel` (
  23. `id` bigint NOT NULL AUTO_INCREMENT COMMENT '提现渠道id',
  24. `withdrawal_type` tinyint NOT NULL COMMENT '提现渠道类型',
  25. `withdrawal_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '提现渠道名称',
  26. `amount` bigint NOT NULL DEFAULT '0' COMMENT '提现金额,单位:元',
  27. `count` int NOT NULL DEFAULT '0' COMMENT '提现笔数',
  28. `status` tinyint DEFAULT '0' COMMENT '提现状态, 0:未完成 , 1:已完成 , 2:部分完成 , 3:全部失败',
  29. `pt_daily_withdrawal_id` bigint NOT NULL COMMENT '提现渠道记录id',
  30. `excel_status` bit(1) NOT NULL DEFAULT b'0' COMMENT '导出状态,已导出是1,未导出为0',
  31. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '创建者',
  32. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  33. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '更新者',
  34. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  35. `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  36. PRIMARY KEY (`id`) USING BTREE
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='提现渠道记录表';
  38. CREATE TABLE `distri_pt_daily_withdrawal` (
  39. `id` bigint NOT NULL AUTO_INCREMENT COMMENT '记录id',
  40. `amount` bigint NOT NULL DEFAULT '0' COMMENT '提现金额,单位:元',
  41. `count` int NOT NULL DEFAULT '0' COMMENT '提现笔数',
  42. `status` tinyint DEFAULT '0' COMMENT '提现状态, 0:未完成 , 1:已完成 , 2:部分完成 , 3:全部失败',
  43. `start_time` datetime NOT NULL COMMENT '提现开始时间',
  44. `end_time` datetime NOT NULL COMMENT '提现截止时间',
  45. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '创建者',
  46. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  47. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '更新者',
  48. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  49. `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  50. PRIMARY KEY (`id`) USING BTREE
  51. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='平台每日提现记录表';
  52. ALTER TABLE sale_shop
  53. ADD COLUMN `account_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT null COMMENT '账户名称',
  54. ADD COLUMN `account_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT null COMMENT '账户号码',
  55. ADD COLUMN `bank_name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT null COMMENT '开户银行';
  56. ALTER TABLE trade_pt_settlement
  57. ADD COLUMN `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '结算单状态 0:未完成 , 1:已完成 , 2:部分完成 , 3:全部失败';
  58. AlTER TABLE trade_shop_settlement
  59. ADD COLUMN `account_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '账户名称',
  60. ADD COLUMN `account_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '账户号码';
  61. ALTER TABLE trade_pt_settlement
  62. ADD COLUMN `export_status` bit(1) NOT NULL DEFAULT b'0' COMMENT '导出状态,已导出是1,未导出为0';