supa-seed
Version:
A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support
50 lines • 1.38 kB
TypeScript
import { SeedModule } from '../../../core/types/types';
export declare class GearSeeder extends SeedModule {
private gearData;
seed(): Promise<void>;
private seedGearItems;
/**
* Check if a column exists in a table
*/
private columnExists;
/**
* Get the gear table name (try multiple possibilities)
*/
private getGearTableName;
/**
* Detect gear table category strategy
*/
private detectGearCategoryStrategy;
/**
* Create gear item pool for enum-based categories
*/
private createEnumGearItemPool;
/**
* Create default category mapping for enum values
*/
private createDefaultCategoryMapping;
/**
* Find best enum match for a gear type
*/
private findBestEnumMatch;
/**
* Ensure all gear categories exist in the database
*/
private ensureGearCategories;
/**
* Create a pool of all available gear items with their category IDs
*/
private createGearItemPool;
/**
* Select specific number of gear items from the pool
*/
private selectGearItems;
/**
* Create variants of existing gear items to reach requested count
*/
private createGearVariants;
private associateGearWithSetups;
private selectRelevantGear;
private generateGearNotes;
}
//# sourceMappingURL=gear-seeder.d.ts.map