Skip to content

feat(auth): add PostgreSQL session schema - #22

Merged
rd-code-23 merged 2 commits into
mainfrom
feature/auth
Aug 17, 2026
Merged

rd-code-23 merged 2 commits into
mainfrom
feature/auth

Conversation

@rd-code-23

Copy link
Copy Markdown
Owner

Summary

  • add the connect-pg-simple-compatible PostgreSQL session table through Drizzle
  • add primary-key lookup and expiration-cleanup indexes
  • generate and track the initial SQL migration and Drizzle metadata
  • organize database schemas into feature-focused modules
  • reconcile the concrete session-store shape and cleanup behavior with the database documentation

Why

Server-side authentication needs a durable, migration-owned PostgreSQL session store before session middleware can be configured. Runtime table creation remains disabled by design.

Validation

  • pnpm --filter @goforlift/api test — 11 tests passed
  • pnpm --filter @goforlift/api typecheck
  • pnpm --filter @goforlift/api lint
  • targeted Prettier checks
  • drizzle-kit check
  • Drizzle generation reports no schema changes after the organization refactor
  • git diff --check

A clean-database migration application was not run because Docker/PostgreSQL is not installed in the execution environment.

Closes #6

@rd-code-23
rd-code-23 marked this pull request as ready for review August 17, 2026 23:45
@rd-code-23
rd-code-23 merged commit 4d4eaff into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auth][Phase 1] Add PostgreSQL session schema and migration

1 participant