UNPKG

data-seed-generator

Version:

seed-generator is an npm package designed to simplify the process of adding data to the database

21 lines (20 loc) 632 B
/** * * @param {*} numOfRecords * @param {*} customTableSchema * @param {*} tableName * @param {*} sequelizeConfig */ export declare const generateSeedDataSequelize: (numOfRecords: number, customTableSchema: any, tableName: string, sequelizeConfig?: {}) => Promise<import("sequelize").Model<any, any>[]>; /** * * @param {*} numOfRecords * @param {*} mongooseConfig * @param {*} modelName * @param {*} customFields * @returns */ /** * Generate seed data for mongoose */ export declare const generateSeedDataMongoose: (numOfRecords: number, mongooseConfig: any, modelName: string, customFields?: {}) => Promise<any[]>;