shellphone.app/db/seeds.ts

17 lines
403 B
TypeScript
Raw Normal View History

2021-07-31 14:33:18 +00:00
// import db from "./index"
/*
* This seed function is executed when you run `blitz db seed`.
*
* Probably you want to use a library like https://chancejs.com
* or https://github.com/Marak/Faker.js to easily generate
* realistic data.
*/
const seed = async () => {
// for (let i = 0; i < 5; i++) {
// await db.project.create({ data: { name: "Project " + i } })
// }
};
2021-07-31 14:33:18 +00:00
export default seed;