plc_control/migrations
caoqianming a33c013da5 Add operation-system config schema and CRUD API
Land design doc §12 P1 + P2: ops business tables plus station/segment
configuration endpoints. The engine (P3) consumes these as its inputs.

- Migration: six ops tables (station, station_signal, process_segment,
  segment_step, segment_interlock, segment_resource) plus event attribution
  columns (subject_type, subject_id).
- model.rs: FromRow structs and string-backed enum helpers
  (StationType, StationSignalRole, SegmentMode, ActionKind, OnTimeout,
  InterlockAppliesTo, RuleKind).
- service: station CRUD with signal-binding upsert; segment CRUD with
  nested step/interlock CRUD and transactional resource replacement.
- handler: 13 endpoints covering design doc §9.1 config routes with
  validator-based input checks and enum allowlists.
- router: wires the new routes; smoke tests cover station and segment
  collection routes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 08:17:34 +08:00
..
20260224065328_initial.sql feat: 软件第一个版本 2026-03-03 13:32:05 +08:00
20260224065329_add_point_tag.sql 修改migrate名称 2026-03-04 13:57:40 +08:00
20260224070000_remove_scan_interval_s.sql refactor: 统一轮询任务实现,移除 scan_interval_s 字段 2026-03-05 09:30:30 +08:00
20260311090000_create_page.sql feat(page): add page table and CRUD handlers 2026-03-11 13:54:14 +08:00
20260323093000_add_equipment_and_point_metadata.sql feat(point): add equipment metadata scaffolding 2026-03-23 10:38:20 +08:00
20260324090000_add_unit_and_event.sql feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
20260326090000_unique_equipment_signal_role.sql db: enforce unique signal_role per equipment on point 2026-03-26 22:14:27 +08:00
20260518090000_create_operation_system.sql Add operation-system config schema and CRUD API 2026-05-19 08:17:34 +08:00