(idx_tasks_session_id is a partial UNIQUE index that requires a dedupe pass against existing data — a flat CREATE UNIQUE INDEX would fail on any DB that has two tasks sharing a session_id. migrateTasksSessionIDUnique handles both the dedupe and the index creation as one idempotent step.) ----------
| 129 | |
| 130 | // Project mirrors the projects table. |
| 131 | type Project struct { |
| 132 | Slug string |
| 133 | Name string |
| 134 | Status string |
| 135 | Priority string |
| 136 | WorkDir string |
| 137 | CreatedAt string |
| 138 | UpdatedAt string |
| 139 | ArchivedAt sql.NullString |
| 140 | } |
| 141 | |
| 142 | // Task mirrors the tasks table. ProjectSlug is nullable for floating tasks. |
| 143 | type Task struct { |
nothing calls this directly
no outgoing calls
no test coverage detected