Skip to content

ReaderApiKey

reference
1 min readUpdated

Kind: Database Model

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

Fields

FieldTypeRequiredKey
idStringPK
accountIdString
projectIdString
nameString
keyHashStringunique
keyPrefixString
lastUsedAtDateTime-
revokedAtDateTime-
createdAtDateTime

Diagram

mermaid
erDiagram
    ReaderApiKey {
        id String [PK]
        accountId String
        projectId String
        name String
        keyHash String [UNIQUE]
        keyPrefix String
        lastUsedAt DateTime?
        revokedAt DateTime?
        createdAt DateTime
    }
    ReaderApiKey ||--|| ReaderAccount : ""
    ReaderApiKey ||--|| Project : ""

Relationships

  • HAS_ONE → ReaderAccount
  • HAS_ONE → Project

Was this page helpful?

Download as PDF