yumi-java/sql/20260430_sys_pay_factory_config.sql
2026-04-30 18:59:20 +08:00

25 lines
1.6 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE IF NOT EXISTS `sys_pay_factory_config`
(
`id` BIGINT NOT NULL COMMENT '主键',
`factory_code` VARCHAR(64) NOT NULL COMMENT '支付厂商code',
`env` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '运行环境PROD/TEST空表示通用',
`sys_origin` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '来源系统,空表示通用',
`mer_account` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '商户标识',
`mer_no` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '商户编号',
`gateway_base_url` VARCHAR(512) NOT NULL DEFAULT '' COMMENT '网关基础地址',
`rsa_private_key` TEXT COMMENT '商户RSA私钥',
`platform_rsa_public_key` TEXT COMMENT '平台RSA公钥',
`notify_url` VARCHAR(512) NOT NULL DEFAULT '' COMMENT '回调地址',
`enabled` TINYINT(1) NOT NULL DEFAULT 1 COMMENT '是否启用',
`create_time` DATETIME DEFAULT NULL COMMENT '创建时间',
`update_time` DATETIME DEFAULT NULL COMMENT '更新时间',
`create_user` BIGINT DEFAULT NULL COMMENT '创建人',
`update_user` BIGINT DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_factory_env_origin` (`factory_code`, `env`, `sys_origin`),
KEY `idx_factory_enabled` (`factory_code`, `enabled`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci
COMMENT ='支付厂商运行配置';