19_20240801.sql 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ALTER TABLE sale_merchant_apply
  2. ADD COLUMN `account_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账户名称',
  3. ADD COLUMN `account_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账户号码',
  4. ADD COLUMN `bank_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '开户银行',
  5. ADD COLUMN `brand_licensing` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '品牌授权书',
  6. ADD COLUMN `other_certificate` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '其他证书';
  7. CREATE TABLE `sale_merchant_apply_log`(
  8. `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '审核记录id',
  9. `status` tinyint NOT NULL DEFAULT '0' COMMENT '申请状态 0:申请中 1:通过 2:未通过',
  10. `merchant_apply_id` bigint NOT NULL COMMENT '商户申请id',
  11. `check_system_user_id` bigint DEFAULT NULL COMMENT '审核系统用户id',
  12. `check_comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '审核意见',
  13. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
  14. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  15. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  16. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  17. `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  18. PRIMARY KEY (`id`) USING BTREE
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='商户审核记录';
  20. ALTER TABLE sale_merchant_apply
  21. MODIFY `check_status` tinyint DEFAULT '0' COMMENT '审核状态:默认0表示未审核,1审核通过,2审核不通过';
  22. ALTER TABLE sale_merchant_apply
  23. ADD COLUMN `legal_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '法人',
  24. ADD COLUMN `legal_person_number` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '法人电话',
  25. ADD COLUMN `identity_card_front` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '身份证正面',
  26. ADD COLUMN `identity_card_reverse_side` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '身份证反面';
  27. ALTER TABLE sale_merchant
  28. ADD COLUMN `legal_person` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '法人',
  29. ADD COLUMN `legal_person_number` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '法人电话',
  30. ADD COLUMN `identity_card_front` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '身份证正面',
  31. ADD COLUMN `identity_card_reverse_side` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '身份证反面';
  32. ALTER TABLE sale_merchant_apply
  33. ADD COLUMN `check_person_status` tinyint DEFAULT '1' COMMENT '审核人状态:默认1表示廖总,2徐总,3翁总, 0通过';