⚡️ add - api generationGain , api superadmin , readme , fichier de seed

This commit is contained in:
eric committed 2022-11-12 20:23:15 +01:00
1 parent 141d9e53e8
commit e85117b2c7
25 files changed
+768 -310

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
import { Prisma } from "@prisma/client";
export const userData: Prisma.UserCreateInput[] = [
{
name: 'Alice',
email: 'alice@prisma.io',
posts: {
create: [
{
title: 'Join the Prisma Slack',
content: 'https://slack.prisma.io',
published: true,
},
],
},
},
{
name: 'Nilu',
email: 'nilu@prisma.io',
posts: {
create: [
{
title: 'Follow Prisma on Twitter',
content: 'https://www.twitter.com/prisma',
published: true,
},
],
},
},
{
name: 'Mahmoud',
email: 'mahmoud@prisma.io',
posts: {
create: [
{
title: 'Ask a question about Prisma on GitHub',
content: 'https://www.github.com/prisma/prisma/discussions',
published: true,
},
{
title: 'Prisma on YouTube',
content: 'https://pris.ly/youtube',
},
],
},
},
]