mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-11 08:43:04 +00:00
feat: add category visibility
This commit is contained in:
@@ -29,10 +29,11 @@ model User {
|
||||
}
|
||||
|
||||
model Category {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @db.VarChar(255)
|
||||
description String? @db.VarChar(255)
|
||||
id Int @id @default(autoincrement())
|
||||
name String @db.VarChar(255)
|
||||
description String? @db.VarChar(255)
|
||||
links Link[]
|
||||
visibility Visibility @default(private)
|
||||
|
||||
author User @relation(fields: [authorId], references: [id])
|
||||
authorId Int
|
||||
@@ -63,3 +64,8 @@ model Link {
|
||||
|
||||
@@map("link")
|
||||
}
|
||||
|
||||
enum Visibility {
|
||||
private
|
||||
public
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user