Skip to content

[BE-35] Create a database seeder for development #361

@mftee

Description

@mftee

Overview

Build a seeder script that populates the dev database with realistic test data inside backend/cmmty/.

Acceptance Criteria

  • Create backend/cmmty/seeder/ with a runnable seed script
  • Seed: 5 users (1 admin, 4 regular), 20 documents across all statuses, risk assessments, 5 verification records
  • Script must be idempotent (safe to run multiple times)
  • Add npm run seed script to package.json pointing to cmmty seeder
  • Include a README inside backend/cmmty/seeder/ with run instructions

Contribution Folder

All files must be placed inside backend/cmmty/. Do not modify any file outside this folder.

How to Contribute

Comment on this issue to express interest, fork the repo, build inside backend/cmmty/ only, and open a PR targeting main.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions