feat(oneos): add signed scope API client

This commit is contained in:
lingniu
2026-07-16 18:49:01 +08:00
parent 1243efc7dd
commit 46f2026c03
10 changed files with 555 additions and 41 deletions

View File

@@ -35,14 +35,14 @@ CREATE TABLE IF NOT EXISTS business_customer_vehicle_scope (
CREATE TABLE IF NOT EXISTS business_scope_rejection (
run_id CHAR(32) NOT NULL,
row_number INT UNSIGNED NOT NULL,
`row_number` INT UNSIGNED NOT NULL,
vehicle_id BIGINT NULL,
vin VARCHAR(64) NOT NULL DEFAULT '',
customer_id BIGINT NULL,
contract_id BIGINT NULL,
reason_code VARCHAR(64) NOT NULL,
created_at DATETIME(3) NOT NULL,
PRIMARY KEY (run_id, row_number),
PRIMARY KEY (run_id, `row_number`),
INDEX idx_business_scope_rejection_reason (reason_code, created_at),
CONSTRAINT fk_business_scope_rejection_run
FOREIGN KEY (run_id) REFERENCES business_scope_sync_run(run_id)