Skip to content

Category

reference
1 min readUpdated

Kind: Database Model

Source: atloria-monorepo/libs/database/prisma/schema.prisma

Fields

FieldTypeRequiredKey
idStringPK
nameString
slugString
descriptionString-
iconString-
colorString-
orderInt
parentIdString-
defaultDocIdString-unique
projectIdString
documentsDocument[]
jobIdString-
docVersionIdString-
isManualBoolean
visibilityRuleJson-
createdAtDateTime
updatedAtDateTime

Diagram

mermaid
erDiagram
    Category {
        id String [PK]
        name String
        slug String
        description String?
        icon String?
        color String?
        order Int
        parentId String?
        defaultDocId String? [UNIQUE]
        projectId String
        documents Document[]
        jobId String?
        docVersionId String?
        isManual Boolean
        visibilityRule Json?
        createdAt DateTime
        updatedAt DateTime
    }
    Category ||--|| Category : ""
    Category ||--}o Category : ""
    Category ||--|| Project : ""
    Category ||--|| DocVersion : ""

Relationships

  • HAS_ONE → Category
  • HAS_ONE → Category
  • HAS_ONE → Project
  • HAS_ONE → DocVersion

Referenced By

  • Category (HAS_ONE)
  • Category (HAS_ONE)

Was this page helpful?

Download as PDF