User => Player

This commit is contained in:
2024-12-08 13:41:37 +01:00
parent c6da328023
commit 65576fc5b1
39 changed files with 193 additions and 240 deletions

View File

@ -5,14 +5,14 @@ const prisma = new PrismaClient()
async function main() {
const emmyPassword = await bcrypt.hash("Emmy", 10)
const emmy = await prisma.user.upsert({
const emmy = await prisma.player.upsert({
where: { id: 1 },
update: { name: 'Emmy' },
create: { name: 'Emmy', password: emmyPassword },
})
const taminaPassword = await bcrypt.hash("Tamina", 10)
const tamina = await prisma.user.upsert({
const tamina = await prisma.player.upsert({
where: { id: 2 },
update: { name: 'Tamina' },
create: { name: 'Tamina', password: taminaPassword },