como adicionar um ID ao invés de um id inteiro no prisma com mysql nesse modelo e essas relações de curtidas, posts, comentários, estão me incomodando para integrar
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model user {
id Int @id @default(autoincrement())
name String?
email String @unique
password String @db.VarChar(255)
Post Post[]
Likes Likes[]
Comment Comment[]
About About[]
@@map("users")
}
model Post {
id Int @id @default(autoincrement())
title String?
content String @db.VarChar(255)
userId Int
author user @relation(fields: [userId], references: [id])
Likes Likes[]
Comment Comment[]
@@map("posts")
}
model Likes {
id Int @id @default(autoincrement())
userId Int
postId Int
curtidas Int
user user @relation(fields: [userId], references: [id])
post Post @relation(fields: [postId], references: [id])
@@map("likes")
}
model Comment {
id Int @id @default(autoincrement())
content String
userId Int
postId Int
user user @relation(fields: [userId], references: [id])
post Post @relation(fields: [postId], references: [id])
@@map("comments")
}
model About {
id Int @id @default(autoincrement())
userId Int
city String
hobby String
state String
user user @relation(fields: [userId], references: [id])
@@map("abouts")
}