24 lines
557 B
Markdown
24 lines
557 B
Markdown
|
|
---
|
||
|
|
kind: task
|
||
|
|
slug: db-connected-repos-migration
|
||
|
|
title: Drizzle schema and migration for connected_repos
|
||
|
|
plan_slug: automation-foundation
|
||
|
|
epic_slug: connected-repos
|
||
|
|
status: done
|
||
|
|
priority: P1
|
||
|
|
tenant_id: global
|
||
|
|
owner: unassigned
|
||
|
|
cursor_todo_id: null
|
||
|
|
updated_at: "2026-07-07"
|
||
|
|
---
|
||
|
|
|
||
|
|
# Task summary
|
||
|
|
|
||
|
|
Workspace-scoped `connected_repos` table with forge metadata and env-var token reference.
|
||
|
|
|
||
|
|
## Acceptance criteria
|
||
|
|
|
||
|
|
- [x] Migration `0012` generated via `pnpm db:generate`
|
||
|
|
- [x] Unique constraint per workspace + api base + owner + repo
|
||
|
|
- [x] `workspace_id` index
|