Skip to content

KGEntity

reference
1 min readUpdated

Kind: Database Model

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

Fields

FieldTypeRequiredKey
idStringPK
projectIdString
typeEntityType
nameString
metadataJson
contentHashString-
lastScannedAtDateTime-
createdAtDateTime
updatedAtDateTime

Diagram

mermaid
erDiagram
    KGEntity {
        id String [PK]
        projectId String
        type EntityType
        name String
        metadata Json
        contentHash String?
        lastScannedAt DateTime?
        createdAt DateTime
        updatedAt DateTime
    }
    KGEntity ||--|| Project : ""
    KGEntity ||--}o KGRelationship : ""
    KGEntity ||--}o KGRelationship : ""

Relationships

  • HAS_ONE → Project
  • HAS_ONE → KGRelationship
  • HAS_ONE → KGRelationship

Was this page helpful?

Download as PDF