Kind: Database Model
Like on a post
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
postId | String | ✓ | |
userId | String | ✓ | |
createdAt | DateTime | ✓ |
Diagram
mermaiderDiagram Like { id String [PK] postId String userId String createdAt DateTime } Like ||--|| Post : "postId" Like ||--|| User : "userId"
Relationships
- BELONGS_TO →
Post - BELONGS_TO →
User
Referenced By
User(HAS_MANY)Post(HAS_MANY)
Was this page helpful?