-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_config.json
More file actions
125 lines (125 loc) · 3.42 KB
/
sample_config.json
File metadata and controls
125 lines (125 loc) · 3.42 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"databases": {
"note": {
"host": "db",
"port": 5432,
"driver": "postgres",
"user": "docker",
"pass": "docker",
"desc": "contains items and account management",
"tables": {
"accounts": {
"desc": "stores accounts",
"fields": {
"id": {
"type": "bigserial",
"constraints": ["primary key"]
},
"username": {
"type": "text",
"constraints": ["not null unique"]
},
"password": {
"type": "text",
"constraints": ["not null"]
}
},
"mock": {
"test": {
"username": "test",
"password": "test"
},
"test1": {
"username": "test1",
"password": "test1"
},
"test2": {
"username": "test2",
"password": "test2"
},
"test3": {
"username": "test3",
"password": "test3"
}
}
},
"sessions": {
"desc": "stores users' sessions",
"fields": {
"id": {
"type": "bigserial",
"constraints": ["primary key"]
},
"uid": {
"type": "bigserial",
"constraints": ["references accounts(id)"]
},
"token": {
"type": "text",
"constraints": ["not null"]
},
"expiration": {
"type": "timestamp without time zone",
"constraints": ["not null"]
},
"last_seen": {
"type": "timestamp without time zone",
"constraints": ["not null"]
}
}
},
"items": {
"desc": "contains notes",
"fields": {
"id": {
"type": "bigserial",
"constraints": ["primary key"]
},
"uid": {
"type": "bigserial",
"constraints": ["references accounts(id)"]
},
"creation_date": {
"type": "timestamp",
"constraints": ["not null"]
},
"edition_date": {
"type": "timestamp",
"constraints": ["not null"]
},
"title": {
"type": "text",
"constraints": ["not null"]
},
"description": {
"type": "text"
}
},
"mock": {
"test": {
"uid": "1",
"creation_date": "2019-12-17 23:15:01",
"edition_date": "2019-12-21 02:02:34",
"title": "This is a note",
"description": "Waouw, this is a nice test!"
},
"test2": {
"uid": "1",
"creation_date": "2019-12-17 23:21:32",
"edition_date": "2019-12-21 00:01:10",
"title": "This is another note",
"description": "This one is another test."
},
"test3": {
"uid": "1",
"creation_date": "2019-12-18 12:37:42",
"edition_date": "2019-12-18 12:37:42",
"title": "Foobar barfoo",
"description": "Lorem ipsum dolor sit amet"
}
}
}
}
}
}
}