Kind: Database Model
Source: atloria-monorepo/apps/database-parser/test/fixtures/user.entity.ts
User entity represents application users
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | uuid | ✓ | PK |
email | varchar | ✓ | unique |
name | varchar | - | |
password | varchar | ✓ | |
role | enum | ✓ | |
createdAt | timestamp | ✓ | |
updatedAt | timestamp | ✓ |
Diagram
mermaiderDiagram User { id uuid [PK, AUTO] email varchar [UNIQUE] name varchar? password varchar role enum createdAt timestamp updatedAt timestamp } User ||--}o Post : "" User ||--|| Profile : ""
Relationships
- HAS_MANY →
Post - HAS_ONE →
Profile
Referenced By
Post(BELONGS_TO)Profile(HAS_ONE)
Was this page helpful?