Kind: Database Model
Source: atloria-monorepo/libs/database/prisma/schema.prisma
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
organizationId | String | ✓ | |
projectId | String | - | |
userId | String | ✓ | |
provider | String | ✓ | |
model | String | ✓ | |
operationType | String | ✓ | |
entityType | String | ✓ | |
entityId | String | ✓ | |
inputTokens | Int | ✓ | |
outputTokens | Int | ✓ | |
totalTokens | Int | ✓ | |
inputCost | Int | ✓ | |
outputCost | Int | ✓ | |
totalCost | Int | ✓ | |
inputPricePerMToken | Int | ✓ | |
outputPricePerMToken | Int | ✓ | |
metadata | Json | - | |
createdAt | DateTime | ✓ |
Diagram
mermaiderDiagram AIUsage { id String [PK] organizationId String projectId String? userId String provider String model String operationType String entityType String entityId String inputTokens Int outputTokens Int totalTokens Int inputCost Int outputCost Int totalCost Int inputPricePerMToken Int outputPricePerMToken Int metadata Json? createdAt DateTime }
Was this page helpful?