Contains specification of collection in database
- Source:
Members
(static, constant) ACCOUNT_COL :module:database.CollectionSpec
Define account collection
Type:
- Source:
Example
// sample of an account correct with specification
var acccount = {
_id: '57d80fd6888ad399dece8f72',
name: 'kevin leptons',
issuer: 'google',
subject: '1234567890',
groups: ['root'],
scheduler: {},
scheduler: [],
language: 'en'
}
(static, constant) REGION_COL :module:database.CollectionSpec
Define region collection
Type:
- Source:
Example
// samples of region correct with specification
var regionEn = {id: 'en', name: 'English'}
var regionVi = {id: 'vi', name: 'Vietnameses'}
(static, constant) SCHEDULER_COL :module:database.CollectionSpec
Define scheduler collection
Type:
- Source:
Example
// sample of an scheduler correct with specification
var scheduler = {
"_id": "57d80fd6888ad399dece8f72",
"name": "office work",
"tags": ["work", "company", "fulltime", "office"],
"notes": "for guy who have busy work in office",
"tasks": [
{"start": "05:00", "action": "get up and run"},
{"start": "06:00", "action": "standby"},
{"start": "06:15", "action": "take a shower"},
{"start": "06:30", "action": "have breakfast"},
{"start": "07:00", "action": "go to company"},
{"start": "07:45", "action": "prepare working"},
{"start": "08:00", "action": "research and development"},
{"start": "10:00", "action": "relax"},
{"start": "12:00", "action": "have a lunch"},
{"start": "13:00", "action": "research and development"},
{"start": "15:00", "action": "realax"},
{"start": "15:15", "action": "research and development"},
{"start": "17:30", "action": "go to home"},
{"start": "18:15", "action": "take a shower"},
{"start": "18:30", "action": "have a dinner"},
{"start": "21:30", "action": "sleep"}
]
}