Skip to content

Commit

Permalink
Changed syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLitt committed May 25, 2015
1 parent 6a02c61 commit efa4537
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions js/data/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// Email string // email associated with account
// }

var account = {
module.exports.account = exports.account = {
'_id': 'hash1234',
'name': 'Richard Feynman',
'avatar': 'http://upload.wikimedia.org/wikipedia/en/4/42/Richard_Feynman_Nobel.jpg',
Expand All @@ -33,7 +33,7 @@ var account = {
// OAuthTokens []string
// }

var user = {
module.exports.user = exports.user = {
'account': 'hash1234',
'oauthTokens': [
'lksjfsa;djl',
Expand All @@ -49,7 +49,7 @@ var user = {
// }

// TODO Should members be IDs?
var group = {
module.exports.group = exports.group = {
'_id': 'hash5678',
'owner': 'hash1234',
'members': [
Expand All @@ -69,7 +69,7 @@ var group = {
// Participants Membership
// }

var conversation = {
module.exports.conversation = exports.conversation = {
'_id': '1234hash',
'title': "Surely you're joking!",
'owner': [
Expand All @@ -91,7 +91,7 @@ var conversation = {
// Participants Membership
// }

var note = {
module.exports.note = exports.note = {
'_id': 'hash4567',
'text': 'Ever since I was little, I have always loved the sound of my own voice.',
'owner': [
Expand All @@ -113,7 +113,7 @@ var note = {
// )

// This is read
var permission = 1
module.exports.permission = exports.permission = 1

// Membership is a group of users that belong to an entity,
// with associated permissions. For example, the participants
Expand All @@ -124,10 +124,3 @@ var permission = 1
// var (
// EntityPermissions map[AccountID][EntityID]PermType
// )

module.exports.account = exports.account = account
module.exports.user = exports.user = user
module.exports.group = exports.group = group
module.exports.conversation = exports.conversation = conversation
module.exports.note = exports.note = note
module.exports.permission = exports.permission = permission

0 comments on commit efa4537

Please sign in to comment.