WangDL 9520d1f549
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 42s
feat: M2-04 — Ingestion & Indexing, ImportStepLog + Admin monitor AAPI
- ImportStepLog model for tracking each import pipeline step
- Admin AAPI: import list, detail with step logs, retry failed
- Admin page: ImportMonitor with drawer detail view

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:12:16 +08:00

13 lines
487 B
SQL

CREATE TABLE IF NOT EXISTS `ImportStepLog` (
`id` VARCHAR(191) NOT NULL,
`importId` VARCHAR(191) NOT NULL,
`step` VARCHAR(32) NOT NULL,
`status` VARCHAR(16) NOT NULL,
`detail` VARCHAR(500) NULL,
`startedAt` DATETIME(3) NULL,
`completedAt` DATETIME(3) NULL,
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
INDEX `ImportStepLog_importId_idx`(`importId`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;