prorm API Reference
    Preparing search index...

    Interface SeederDefinition

    Definition of a seeder - up populates data, down removes it

    interface SeederDefinition {
        up(queryInterface: any, prorm: any): Promise<void>;
        down(queryInterface: any, prorm: any): Promise<void>;
        env?: string | string[];
    }
    Index
    env?: string | string[]

    Optional environment scoping. When set, the seeder is only eligible to run when the environment passed to runSeeders() (or NODE_ENV) matches one of these values. Seeders without this field always run, regardless of environment - this keeps plain reference-data seeders "production safe" by default while letting dev-only fixtures opt in to scoping.

    • Parameters

      • queryInterface: any
      • prorm: any

      Returns Promise<void>

    • Parameters

      • queryInterface: any
      • prorm: any

      Returns Promise<void>