@@ -396,18 +396,6 @@ export interface ScheduleTable {
396396/**
397397 * One row per fire, pending or historical.
398398 * PRIMARY KEY (id)
399- * WITH (fillfactor = 85); two or three small bounded updates per row
400- * (scheduled -> triggered -> terminal)
401- * UNIQUE (tenant_id, schedule_id, name) — the fire slot, so a duplicated dispatch
402- * cannot double-insert
403- * CREATE INDEX schedule_run_due_idx ON schedule_run (scheduled_for)
404- * WHERE status = 'scheduled' -- partial: the table is mostly terminal rows
405- * CREATE UNIQUE INDEX schedule_run_pending_uq ON schedule_run (schedule_id)
406- * WHERE status = 'scheduled' -- at most one pending run per schedule
407- * CREATE INDEX schedule_run_list_idx ON schedule_run (schedule_id, scheduled_for DESC)
408- *
409- * No `session_id` column: the run -> session link is carried on `session.custom`
410- * (`{ schedule_id, run_id }`) and resolved when the runs list is assembled.
411399 */
412400export interface ScheduleRunTable {
413401 /** application-generated (ulid) */
@@ -417,12 +405,10 @@ export interface ScheduleRunTable {
417405 schedule_id : string ;
418406 /** the fire slot: `sched-<unixSeconds>` for cron, `manual-<token>` for run-now */
419407 name : string ;
420- /** the instant this run was scheduled for; preserved even when the run is `missed` */
421408 scheduled_for : Date ;
422409 status : ScheduleRunStatus ;
423410 /** `UserContext.userRef` of who triggered the run */
424411 triggered_by : string ;
425- /** set when status moves to `triggered` */
426412 triggered_at : Date | null ;
427413 created_at : Date ;
428414 updated_at : Date ;
0 commit comments