Ajout structure de jeu
This commit is contained in:
@ -4,6 +4,7 @@ import * as bcrypt from 'bcrypt'
|
||||
const prisma = new PrismaClient()
|
||||
|
||||
async function main() {
|
||||
const game = await prisma.game.create({ data: {} })
|
||||
const emmyPassword = await bcrypt.hash("Emmy", 10)
|
||||
const emmy = await prisma.player.upsert({
|
||||
where: { id: 1 },
|
||||
@ -17,7 +18,7 @@ async function main() {
|
||||
update: { name: 'Tamina' },
|
||||
create: { name: 'Tamina', password: taminaPassword },
|
||||
})
|
||||
console.log({ emmy, tamina })
|
||||
console.log({ game, emmy, tamina })
|
||||
}
|
||||
|
||||
main()
|
||||
|
Reference in New Issue
Block a user