Skip to content

[Seed Data] Generate Projects per Car #4214

@Steph375

Description

@Steph375

Description

  • Generate realistic projects for each car.
  • Each generated project should have a generated timeline that later seed generators can use.

Acceptance Criteria

  • 30 projects are generated per car.
  • Projects belong to valid cars.
  • Project names are realistic and non-repetitive.
  • Each project has a generated duration between 3–12 months.
  • Generated project timelines stay within the associated car year.
  • Each generated project has an associated seed timeline stored in context.
  • Generated projects are stored in ctx.projects.

Proposed Solution

  • Add prisma/seed/factories/projectFactory.ts
  • Create createSeedProject(ctx, car, overrides?)
  • Create generateSeedProjects(ctx)
  • Use helper date utilities to generate realistic project timelines.
  • Store project timeline metadata in seed context so later work package and task generators can reuse it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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