aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/models/Workspace.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/workspaces/models/Workspace.js')
-rw-r--r--src/features/workspaces/models/Workspace.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/features/workspaces/models/Workspace.js b/src/features/workspaces/models/Workspace.js
new file mode 100644
index 000000000..ede2710dc
--- /dev/null
+++ b/src/features/workspaces/models/Workspace.js
@@ -0,0 +1,25 @@
1import { observable } from 'mobx';
2
3export default class Workspace {
4 id = null;
5
6 @observable name = null;
7
8 @observable order = null;
9
10 @observable services = [];
11
12 @observable userId = null;
13
14 constructor(data) {
15 if (!data.id) {
16 throw Error('Workspace requires Id');
17 }
18
19 this.id = data.id;
20 this.name = data.name;
21 this.order = data.order;
22 this.services = data.services;
23 this.userId = data.userId;
24 }
25}