Constructor
new Users()
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
String | UUIDv4 which represents the user's ID. |
|
role |
'admin' | 'user' | An enum that has only admin and user values, represents the user's role. |
|
username |
String | User's username. |
|
email |
String | User's email. |
|
password |
String | User's password. |
|
name |
String | User's full name. |
|
image |
String |
<optional> |
An url links which represents the user's image. |
createdAt |
Date | The time the user account was created. |
|
updatedAt |
Date | The last time the user account was updated. |