Skip to content

EPIC-2: Database Setup #2

Description

@deserat

EPIC-2: Database Setup

Epic Overview

Set up PostgreSQL database with pgvector extension, create SQLAlchemy models for all core tables, and establish migration framework.

Phase

Phase 1 - Foundation

Goals

  • Install and configure PostgreSQL with pgvector
  • Create all core database tables (users, items, conversations, etc.)
  • Establish Alembic migration workflow
  • Implement database connection management
  • Seed initial test data

Related Stories

  • EPIC-2-1: Database Installation and Configuration
  • EPIC-2-2: SQLAlchemy Models and Migrations
  • EPIC-2-3: Database Connection and Seed Data

Services Affected

  • api-service: SQLAlchemy models, migrations, database session management
  • database: PostgreSQL setup, pgvector extension

Success Criteria

  • PostgreSQL 14+ installed with pgvector extension
  • All 9 core tables created via migrations
  • Database connection pooling configured
  • Seed data script populates test records
  • Health check can verify database connectivity

Dependencies

  • Blocks: All subsequent phases (require database)
  • Blocked By: EPIC-1 (needs api-service/migrations directory)

Priority Rationale

P0 - Database is core infrastructure. AI classification, sync, and all features depend on it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase/1-foundationRepository, database, vault, scaffoldingpriority/P0Critical path - blocks other workservice/api-serviceFastAPI Python backendservice/databasePostgreSQL schema/migrationstype/epicHigh-level feature grouping

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions