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

@@ -0,0 +1,20 @@
ALTER TABLE business_customer_vehicle_scope
ADD COLUMN customer_name VARCHAR(255) NOT NULL DEFAULT '' AFTER customer_id;
ALTER TABLE business_customer_vehicle_scope
ADD COLUMN department_id VARCHAR(64) NOT NULL DEFAULT '' AFTER project_name;
ALTER TABLE business_customer_vehicle_scope
ADD COLUMN department_name VARCHAR(255) NOT NULL DEFAULT '' AFTER department_id;
ALTER TABLE business_customer_vehicle_scope
ADD COLUMN responsible_user_id VARCHAR(64) NOT NULL DEFAULT '' AFTER department_name;
ALTER TABLE business_customer_vehicle_scope
ADD COLUMN responsible_user_name VARCHAR(255) NOT NULL DEFAULT '' AFTER responsible_user_id;
CREATE INDEX idx_business_scope_department
ON business_customer_vehicle_scope(source_version, department_id, vin);
CREATE INDEX idx_business_scope_responsible
ON business_customer_vehicle_scope(source_version, responsible_user_id, vin);