Kind: Database Model
Source: atloria-monorepo/libs/database/prisma/schema.prisma
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
accountId | String | ✓ | |
projectId | String | ✓ | |
name | String | ✓ | |
keyHash | String | ✓ | unique |
keyPrefix | String | ✓ | |
lastUsedAt | DateTime | - | |
revokedAt | DateTime | - | |
createdAt | DateTime | ✓ |
Diagram
mermaiderDiagram 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?