Kind: Database Model
Blog post model
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
title | String | ✓ | |
content | String | ✓ | |
published | Boolean | ✓ | |
publishedAt | DateTime | - | |
authorId | String | ✓ | |
createdAt | DateTime | ✓ | |
updatedAt | DateTime | ✓ |
Diagram
mermaiderDiagram Post { id String [PK] title String content String published Boolean publishedAt DateTime? authorId String createdAt DateTime updatedAt DateTime } Post ||--|| User : "authorId" Post ||--}o Comment : "" Post ||--}o Like : "" Post ||--}o Tag : ""
Relationships
- BELONGS_TO →
User - HAS_MANY →
Comment - HAS_MANY →
Like - HAS_MANY →
Tag
Referenced By
User(HAS_MANY)Comment(BELONGS_TO)Like(BELONGS_TO)Tag(HAS_MANY)
Was this page helpful?