Migrate operator_sessions.ts to Drizzle #841
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#849 Cleanup: delete
db.ts, lint-ban raw SQL outside DB layer, update docs
charles/claude-hooks
Reference
charles/claude-hooks#841
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a maintainer, I want
operator_sessions.tsrewritten on Drizzle, so that sliding-TTL session CRUD is type-safe and column-rename-safe.Acceptance criteria
Schema
schema/operator-sessions.tsdefinesoperator_sessionstable mirroring current shape (id,forge_type,account_login,created_at,last_seen_at,expires_at).OperatorSessionRowre-exported astypeof operatorSessions.$inferSelect.Rewrite
createOperatorSession,getOperatorSession,touchOperatorSession,deleteOperatorSession,sweepExpiredOperatorSessions,listOperatorSessions.Tests
operator-sessions.test.tsgreen unchanged.operator-sessions.ts.Out of scope
http/session-middleware.ts) — DB shape unchanged.References
apps/server/src/infrastructure/database/operator-sessions.ts(current).db.ts, lint-ban raw SQL outside DB layer, update docs