-
Notifications
You must be signed in to change notification settings - Fork 2
Data Structure
Andrew MacMurray edited this page Jun 8, 2016
·
14 revisions
This is our current data structure
DB = {
events: {
eventId: {
title: 'string',
description: 'string',
address: 'string',
postCode: 'string',
geoLocation: [ 'string', 'string' ]
date: 'string',
time: 'string',
imageUrl: 'string',
creatorId: 'string',
creatorFirstName: 'string',
creatorLastName: 'string',
creatorEmail: 'string',
attending: [ 'string', 'string', ... ], // userIds
categories: [ 'string', 'string', ... ],
eventId: 'string'
},
eventId: {
...
},
...
},
users: {
userId: {
firstName: 'string',
lastName: 'string',
email: 'string',
DOB: 'number',
postCode: 'string',
interests: [ 'string', 'string', ... ],
},
userId: {
...
},
...
},
admins: {
adminId: {
firstName: 'string',
lastName: 'string',
email: 'string',
password: 'string',
eventsCreated: [ 'string', 'string', ... ]
},
adminId: {
...
},
...
}
}