监管管理问题修改
这个提交包含在:
@@ -1106,3 +1106,11 @@ migrations:
|
||||
ownerUnit: integration
|
||||
path: db/migration/integration/V20261201.282__create_reporting_direct_source.sql
|
||||
sha256: 61e51dbda60bf28e726b89253d55030a5d73652a6f9e33483254498eff3b752a
|
||||
- version: '20261201.283'
|
||||
ownerUnit: integration
|
||||
path: db/migration/integration/V20261201.283__create_reporting_submission.sql
|
||||
sha256: 662ce46f46d12d881e9865112759c702cb616874d22434b5785e01d98a7940d7
|
||||
- version: '20261202.284'
|
||||
ownerUnit: system
|
||||
path: db/migration/system/V20261202.284__extend_private_file_owners.sql
|
||||
sha256: a1b7cd5a4e4262892c151fa234f6eac97a862ec95c7b75e2e8676272466d2a6a
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
CREATE TABLE dg_reporting_submission (
|
||||
organization_id BIGINT NOT NULL,
|
||||
attempt_id VARCHAR(36) NOT NULL,
|
||||
batch_id VARCHAR(36) NOT NULL,
|
||||
package_id VARCHAR(36) NOT NULL,
|
||||
package_sha256 VARCHAR(64) NOT NULL,
|
||||
system_id VARCHAR(36) NOT NULL,
|
||||
system_version BIGINT NOT NULL,
|
||||
plan_id VARCHAR(36) NOT NULL,
|
||||
plan_version BIGINT NOT NULL,
|
||||
attempt_state VARCHAR(32) NOT NULL,
|
||||
http_status INT NULL,
|
||||
service_flag INT NULL,
|
||||
response_sha256 VARCHAR(64) NULL,
|
||||
message VARCHAR(1000) NOT NULL,
|
||||
create_by BIGINT NOT NULL,
|
||||
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
finish_time DATETIME NULL,
|
||||
PRIMARY KEY (organization_id,attempt_id),
|
||||
UNIQUE KEY uk_reporting_submission_batch (organization_id,batch_id),
|
||||
CONSTRAINT fk_reporting_submission_batch FOREIGN KEY (organization_id,batch_id) REFERENCES dg_reporting_batch(organization_id,batch_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
CREATE TABLE dg_reporting_verification (
|
||||
organization_id BIGINT NOT NULL,
|
||||
verification_id VARCHAR(36) NOT NULL,
|
||||
batch_id VARCHAR(36) NOT NULL,
|
||||
target_name VARCHAR(32) NOT NULL,
|
||||
outcome VARCHAR(32) NOT NULL,
|
||||
evidence_ref VARCHAR(500) NOT NULL,
|
||||
note VARCHAR(1000) NOT NULL,
|
||||
create_by BIGINT NOT NULL,
|
||||
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (organization_id,verification_id),
|
||||
CONSTRAINT fk_reporting_verify_batch FOREIGN KEY (organization_id,batch_id) REFERENCES dg_reporting_batch(organization_id,batch_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- Align private-file Owner constraint with the existing PrivateBusinessFileOwner contract.
|
||||
-- No change to identity, hashes, length, state, tenant or business authorization checks.
|
||||
ALTER TABLE sys_oss_business_binding
|
||||
DROP CHECK ck_165_owner,
|
||||
ADD CONSTRAINT ck_165_owner CHECK (BINARY JSON_UNQUOTE(JSON_EXTRACT(target_json,'$.businessOwner'))
|
||||
IN (BINARY 'dataproduct',BINARY 'governance',BINARY 'integration',BINARY 'dataops'));
|
||||
在新工单中引用
屏蔽一个用户