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