UNPKG

supa-seed

Version:

A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support

40 lines 1.3 kB
export interface TableFieldMapping { name: string; emailField?: string; idField: string; nameField?: string; bioField?: string; pictureField?: string; userField?: string; titleField?: string; descriptionField?: string; categoryField?: string; publicField?: string; typeField?: string; makeField?: string; modelField?: string; yearField?: string; filePathField?: string; fileNameField?: string; fileSizeField?: string; fileTypeField?: string; altTextField?: string; storageBucketField?: string; uploadStatusField?: string; } export interface SchemaMapping { userTable: TableFieldMapping; setupTable?: TableFieldMapping; baseTemplateTable?: TableFieldMapping; mediaAttachmentsTable?: TableFieldMapping; } export declare const SCHEMA_MAPPINGS: Record<string, SchemaMapping>; /** * Get field mapping with fallbacks */ export declare function getFieldWithFallback(mapping: TableFieldMapping | undefined, fieldType: keyof TableFieldMapping, fallbacks: string[]): string | undefined; /** * Merge custom mappings with defaults */ export declare function mergeSchemaMapping(defaultMapping: SchemaMapping, customMapping?: Partial<SchemaMapping>): SchemaMapping; //# sourceMappingURL=schema-mappings.d.ts.map