Files
SOP/upgrade/sop-20250817.sql
2025-08-17 21:56:23 +08:00

12 lines
717 B
SQL

CREATE TABLE `isv_merchant`
(
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`app_id` varchar(100) NOT NULL COMMENT 'appId',
`merchant_code` varchar(100) NOT NULL DEFAULT '0' COMMENT '商户code',
`add_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`add_by` bigint(20) DEFAULT '0' COMMENT '创建人id',
`update_by` bigint(20) DEFAULT '0' COMMENT '修改人id',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_appid_merchant` (`app_id`, merchant_code)
) ENGINE=InnoDB COMMENT='isv商户关系表';