Hi, I am kind of new to Prisma so bear with me. I ...
# orm-help
m
Hi, I am kind of new to Prisma so bear with me. I am currently facing issue with model whenever i am trying to create a record of it in Postgres. Here's the schema which is causing error
Copy code
model Player {
  id            BigInt      @id
  createdAt    DateTime?   @default(now())
  region       String
  country      String
  timezone     String
  Tournaments Tournament[]
}
and here i am trying to create the record in database.
Copy code
await prisma.player.create({
                    data: {
                        id: Number(interaction.user.id),
                        region: region,
                        timezone: REGION[region][country]["timezone"],
                        country: country,
                        
                    }),
Here's the error which is showed in terminal.
Copy code
Error: 
Invalid `prisma.player.create()` invocation:


  Unique constraint failed on the fields: (`id`)
Can anyone tell me what's going wrong here? Any help would be appreciated!