Users
System user data.
Fields
| Field | Type | Required | Version | Description |
|---|---|---|---|---|
id |
integer | Yes | 1.0 | Unique user identifier |
username |
string | Yes | 1.0 | Username |
firstName |
string | No | 1.0 | First name |
lastName |
string | No | 1.0 | Last name |
email |
string | No | 1.0 | Email address |
customerId |
integer | Yes | 1.0 | Reference to Customer |
role |
string | No | 1.0 | User role |
active |
boolean | No | 1.0 | User active status |
created_at |
date | No | 1.0 | Creation timestamp |
last_login |
date | No | 1.0 | Last login timestamp |
Example
{
"id": 1001,
"username": "chef.john",
"firstName": "John",
"lastName": "Anderson",
"email": "john.anderson@restaurant.no",
"customerId": 12345,
"role": "chef",
"active": true,
"created_at": "2023-01-15T10:00:00Z",
"last_login": "2024-12-03T08:00:00Z"
}
Example - Multiple Users
[
{
"id": 1001,
"username": "admin",
"firstName": "Admin",
"lastName": "User",
"email": "admin@restaurant.no",
"customerId": 12345,
"role": "admin",
"active": true,
"created_at": "2020-01-01T00:00:00Z",
"last_login": "2024-12-03T09:00:00Z"
},
{
"id": 1002,
"username": "cashier.maria",
"firstName": "Maria",
"lastName": "Hansen",
"email": "maria@restaurant.no",
"customerId": 12345,
"role": "cashier",
"active": true,
"created_at": "2023-03-01T10:00:00Z",
"last_login": "2024-12-03T07:30:00Z"
},
{
"id": 1003,
"username": "waiter.erik",
"firstName": "Erik",
"lastName": "Olsen",
"email": "erik@restaurant.no",
"customerId": 12345,
"role": "waiter",
"active": true,
"created_at": "2023-06-15T08:00:00Z",
"last_login": "2024-12-02T18:00:00Z"
}
]
Related Entities
- Customer - Parent customer/tenant
- Orders - Refund username references user
- ArticleWaste - Registered by user