-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.js
More file actions
93 lines (89 loc) · 1.7 KB
/
db.js
File metadata and controls
93 lines (89 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
const { v4: uuid } = require('uuid');
const userId = uuid();
const appId1 = uuid();
const appId2 = uuid();
const type = uuid();
module.exports = () => {
const data = {
groups: [
{
id: uuid(),
name: 'default',
description: 'default',
isDefault: true,
userId: [userId],
applicationId: [appId1, appId2],
createdAt: Date.now(),
},
],
applications: [
{
id: appId1,
name: 'Permissioning',
},
{
id: appId2,
name: 'Support',
},
{
id: uuid(),
name: 'LBR Dashboard',
},
{
id: uuid(),
name: 'App X',
},
{
id: uuid(),
name: 'App Y',
},
{
id: uuid(),
name: 'App Z',
},
],
users: [
{
id: userId,
firstName: 'Hilel',
surname: 'Adams',
email: 'johebo@mailinator.com',
createdAt: Date.now(),
userTypeId: type,
resetRequired: false,
disabled: false,
},
{
id: uuid(),
firstName: 'David',
surname: 'Powers',
email: 'hisedime@mailinator.com',
createdAt: Date.now(),
userTypeId: type,
resetRequired: false,
disabled: false,
},
{
id: uuid(),
firstName: 'Latifah',
surname: 'Guthrie',
email: 'fihi@mailinator.com',
createdAt: Date.now(),
userTypeId: type,
resetRequired: false,
disabled: false,
},
],
userTypes: [
{
id: uuid(),
name: 'Admin',
},
{
id: type,
name: 'Default',
},
],
};
return data;
};