Kind: Database Model
Source: atloria-monorepo/libs/database/prisma/schema.prisma
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
name | String | ✓ | |
description | String | - | |
category | TemplateCategory | ✓ | |
content | String | ✓ | |
thumbnail | String | - | |
metadata | Json | - | |
defaultType | DocumentType | ✓ | |
defaultAudienceIds | String[] | ✓ | |
isPublic | Boolean | ✓ | |
organizationId | String | - | |
useCount | Int | ✓ | |
createdAt | DateTime | ✓ | |
updatedAt | DateTime | ✓ | |
createdById | String | ✓ |
Diagram
mermaiderDiagram DocumentTemplate { id String [PK] name String description String? category TemplateCategory content String thumbnail String? metadata Json? defaultType DocumentType defaultAudienceIds String[] isPublic Boolean organizationId String? useCount Int createdAt DateTime updatedAt DateTime createdById String } DocumentTemplate ||--|| User : "" DocumentTemplate ||--|| Organization : ""
Relationships
- HAS_ONE →
User - HAS_ONE →
Organization
Was this page helpful?