Initial commit

This commit is contained in:
Ahmed Al-Taiar
2024-08-07 22:31:59 -04:00
commit 746a443ccd
50 changed files with 22362 additions and 0 deletions

28
scripts/seed.ts Normal file
View File

@ -0,0 +1,28 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { db } from 'api/src/lib/db'
// Manually apply seeds via the `yarn rw prisma db seed` command.
//
// Seeds automatically run the first time you run the `yarn rw prisma migrate dev`
// command and every time you run the `yarn rw prisma migrate reset` command.
//
// See https://redwoodjs.com/docs/database-seeds for more info
export default async () => {
try {
// Create your database records here! For example, seed some users:
//
// const users = [
// { name: 'Alice', email: 'alice@redwoodjs.com },
// { name: 'Bob', email: 'bob@redwoodjs.com },
// ]
//
// await db.user.createMany({ data: users })
console.info(
'\n No seed data, skipping. See scripts/seed.ts to start seeding your database!\n'
)
} catch (error) {
console.error(error)
}
}