Skip to content

Add Database Seeding Strategy for Staging and Production #1700

Description

@RUKAYAT-CODER

Overview

seed.ts only seeds test data. There is no environment-differentiated seeding for staging (demo quests) or production (initial admin, badge types, feature flags).

Specifications

Tasks:

  • Create seed.staging.ts with demo quests and admin account
  • Create seed.production.ts for initial roles and feature flags
  • Add npm scripts seed:staging and seed:prod`n

Impacted Files:

  • BackEnd/seed.ts`n- BackEnd/scripts/ (new seed scripts)

Acceptance Criteria:

  • Staging seed populates 5 demo quests
  • Production seed creates initial SuperAdmin role

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions