Skip to content

Write Flyway migration scripts for initial schema #5

@timLP79

Description

@timLP79

Create Flyway SQL migration files in src/main/resources/db/migration/ for the initial database schema.

Tables needed:

  • departments -- id, name (unique), description, created_at
  • users -- id, username (unique), email (unique), password, first_name, last_name, role, department_id (FK, nullable), active, created_at
  • tickets -- id, title, description, status, priority, created_by (FK), assigned_to (FK, nullable), department_id (FK), active, created_at, updated_at
  • comments -- id, content, ticket_id (FK), author_id (FK), created_at

Should be written after all entities are finalized so the schema matches exactly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseMigrations, schema, queries

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions