Schema for User Management service:
model User {
id String @id @default(uuid())
username String @unique
email String @unique
password String
}
Schema for File Management service:
model File {
id String @id @default(uuid())
user_id String
user User @relation(fields: [user_id], references: [id])
file_name String
file_description String
file_url String
file_hash String
}
My user management service and file management service are stored in different repositories using Nest Js, Thank You!
I would like to establish a relationship between the file model and the user model.