am-freescan/am-backend/sql/freescan/007_scanner_integration.sql
lixiaolong cfff7295a6 feat(scanner): integrate scanner workflows and real-time preview
Add scanner API integration, workflow components, execution-bound live images and 3D model viewing. Harden task control, parameters, resource protection and reports, with automated regressions and detailed verification records.
2026-10-23 09:03:27 +08:00

18 lines
725 B
SQL

CREATE TABLE IF NOT EXISTS `lab_scanner_command` (
`command_key` varchar(64) NOT NULL,
`active_endpoint` varchar(64) DEFAULT NULL,
`endpoint_key` varchar(64) NOT NULL,
`operation` varchar(64) NOT NULL,
`request_hash` varchar(64) NOT NULL,
`state` varchar(16) NOT NULL,
`remote_task_id` varchar(32) DEFAULT NULL,
`request_json` longtext NOT NULL,
`result_json` longtext,
`error_message` text,
`owner_ref` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`command_key`),
UNIQUE KEY `uk_scanner_active_endpoint` (`active_endpoint`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Scanner command acceptance journal; no supplier credentials';