generated: '2026-10-18' method: derived generator: derive-data-model.py source: - openapi/_original/promptessor-openapi.json notation: has_one = property $ref; has_many = array of $ref; belongs_to = _id field summary: entities: 32 entities_in_spec: 32 relationships: 14 entities: - name: AiOperationResult fields: 7 - name: ApiInformation fields: 5 - name: AsyncOperationAccepted fields: 4 - name: Capabilities fields: 10 - name: DeleteResult fields: 2 - name: ErrorEnvelope fields: 1 - name: Health fields: 4 - name: HistoryDetail fields: 15 - name: HistoryLink fields: 3 - name: HistoryList fields: 5 - name: HistorySummary fields: 9 - name: LibraryItem fields: 23 - name: LibraryList fields: 3 - name: LibraryPublication fields: 4 - name: LibraryToggle fields: 4 - name: ModelList fields: 3 - name: Operation fields: 12 - name: OperationList fields: 3 - name: OperationListItem fields: 11 - name: PlanLimits fields: 7 - name: PromptPreset fields: 10 - name: PromptPresetList fields: 6 - name: RenderedPromptPreset fields: 8 - name: TokenEstimate fields: 4 - name: Upload fields: 8 - name: UploadCreation fields: 6 - name: Usage fields: 13 - name: UsageCharge fields: 3 - name: WebhookEndpoint fields: 10 - name: WebhookEvent fields: 5 - name: WebhookList fields: 2 - name: WebhookTestResult fields: 2 relationships: - from: Capabilities to: PlanLimits type: has_one via: limits - from: Usage to: PlanLimits type: has_one via: api - from: AiOperationResult to: HistoryLink type: has_one via: history - from: AiOperationResult to: UsageCharge type: has_one via: usage - from: Operation to: HistoryLink type: has_one via: history - from: Operation to: UsageCharge type: has_one via: usage - from: OperationListItem to: HistoryLink type: has_one via: history - from: OperationListItem to: UsageCharge type: has_one via: usage - from: OperationList to: OperationListItem type: has_many via: data - from: PromptPresetList to: PromptPreset type: has_many via: data - from: HistoryList to: HistorySummary type: has_many via: items - from: HistoryList to: HistorySummary type: has_many via: generations - from: LibraryList to: LibraryItem type: has_many via: items - from: WebhookList to: WebhookEndpoint type: has_many via: data