Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
ht_project_doc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73e5d535
authored
Aug 03, 2026
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.8.4.3
1 parent
b1feb4fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
25_v5.8.4.3_20260806/sql/DDL/platform_payment_ddl.sql
25_v5.8.4.3_20260806/sql/DDL/platform_payment_ddl.sql
View file @
73e5d53
...
@@ -2,22 +2,22 @@
...
@@ -2,22 +2,22 @@
CREATE
TABLE
IF
NOT
EXISTS
`payment_channel_account_config`
(
CREATE
TABLE
IF
NOT
EXISTS
`payment_channel_account_config`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`security_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'关联 payment_channel_account_config_security 主键'
,
`security_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'关联 payment_channel_account_config_security 主键'
,
`channel`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'支付渠道,如 SHENBIANYUN、XINXIANGYUN'
,
`channel`
varchar
(
16
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'支付渠道,如 SHENBIANYUN、XINXIANGYUN'
,
`account_code`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'付款主体编码'
,
`account_code`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'付款主体编码'
,
`account_name`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'付款主体名称'
,
`account_name`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'付款主体名称'
,
`sub_account_code`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号编码/第三方服务商编码'
,
`sub_account_code`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号编码/第三方服务商编码'
,
`sub_account_name`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号名称'
,
`sub_account_name`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号名称'
,
`sub_account_channel_code`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号通道编码'
,
`sub_account_channel_code`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号通道编码'
,
`sub_account_channel_name`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号通道名称'
,
`sub_account_channel_name`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'子账号通道名称'
,
`merchant_id`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方平台商户号'
,
`merchant_id`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方平台商户号'
,
`task_id`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方任务/项目ID,如新享云的项目ID,身边云的任务ID'
,
`task_id`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方任务/项目ID,如新享云的项目ID,身边云的任务ID'
,
`api_base_url`
varchar
(
512
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'渠道接口地址'
,
`api_base_url`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'渠道接口地址'
,
`notify_url`
varchar
(
512
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'渠道回调地址'
,
`notify_url`
varchar
(
265
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'渠道回调地址'
,
`config_json`
text
COLLATE
utf8mb4_unicode_ci
COMMENT
'渠道特有配置,如租户号、版本号、项目映射、扩展开关'
,
`config_json`
text
COLLATE
utf8mb4_unicode_ci
COMMENT
'渠道特有配置,如租户号、版本号、项目映射、扩展开关'
,
`status`
tinyint
(
2
)
NOT
NULL
DEFAULT
'1'
COMMENT
'1启用 0停用'
,
`status`
tinyint
(
2
)
NOT
NULL
DEFAULT
'1'
COMMENT
'1启用 0停用'
,
`remark`
varchar
(
512
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'备注'
,
`remark`
varchar
(
128
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'备注'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'创建人'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'创建人'
,
`created_date`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`created_date`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'修改人'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'修改人'
,
`updated_date`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_date`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
...
@@ -25,20 +25,19 @@ CREATE TABLE IF NOT EXISTS `payment_channel_account_config` (
...
@@ -25,20 +25,19 @@ CREATE TABLE IF NOT EXISTS `payment_channel_account_config` (
KEY
`idx_security_id`
(
`security_id`
),
KEY
`idx_security_id`
(
`security_id`
),
UNIQUE
KEY
`uk_channel_account_levy`
(
`channel`
,
`account_code`
,
`sub_account_code`
,
`sub_account_channel_code`
,
`deleted_flag`
),
UNIQUE
KEY
`uk_channel_account_levy`
(
`channel`
,
`account_code`
,
`sub_account_code`
,
`sub_account_channel_code`
,
`deleted_flag`
),
KEY
`idx_channel_merchant`
(
`channel`
,
`merchant_id`
,
`deleted_flag`
),
KEY
`idx_channel_merchant`
(
`channel`
,
`merchant_id`
,
`deleted_flag`
),
KEY
`idx_channel_status`
(
`channel`
,
`status`
,
`deleted_flag`
),
KEY
`idx_channel_status`
(
`channel`
,
`status`
,
`deleted_flag`
)
CONSTRAINT
`fk_config_security`
FOREIGN
KEY
(
`security_id`
)
REFERENCES
`payment_channel_account_config_security`
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'第三方支付渠道账号执行配置'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'第三方支付渠道账号执行配置'
;
CREATE
TABLE
IF
NOT
EXISTS
`payment_channel_account_config_security`
(
CREATE
TABLE
IF
NOT
EXISTS
`payment_channel_account_config_security`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`code`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'编码'
,
`code`
varchar
(
32
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'编码'
,
`description`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'描述'
,
`description`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'描述'
,
`our_public_key`
varchar
(
2000
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'我方公钥'
,
`our_public_key`
varchar
(
1024
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'我方公钥'
,
`our_private_key`
varchar
(
20
00
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'我方私钥'
,
`our_private_key`
varchar
(
20
48
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'我方私钥'
,
`third_party_public_key`
varchar
(
20
00
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方公钥'
,
`third_party_public_key`
varchar
(
20
48
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'第三方公钥'
,
`encrypt_key`
varchar
(
2000
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'加密密钥'
,
`encrypt_key`
varchar
(
1024
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'加密密钥'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'创建人'
,
`created_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'创建人'
,
`created_date`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`created_date`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'修改人'
,
`updated_by`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'修改人'
,
`updated_date`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_date`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
`deleted_flag`
char
(
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
DEFAULT
'N'
COMMENT
'删除标识(D:已删除;N:未删除)'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment