node.js/model.js
author carine
Mon, 01 Dec 2014 15:15:25 +0100
changeset 743 0e58fabc0175
parent 668 e71c0d05230c
permissions -rw-r--r--
test
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     1
var mongoose = require('mongoose');
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     2
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     3
var Schema = mongoose.Schema;
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     4
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     5
var People = new Schema({
252
36dbd50d8eab replacing "w3cId" with "slug"
Dominqique Hazael-Massieux <dom@w3.org>
parents: 207
diff changeset
     6
  slug: {type: String, unique: true},
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     7
  given: String,
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     8
  family: String,
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
     9
  email: {type: String, unique: true},
207
268cfb438bce *** empty log message ***
Dominqique Hazael-Massieux <dom@w3.org>
parents: 206
diff changeset
    10
  twitterAccount: {name: String, id: Number},
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    11
  login: {type: String, unique: true},
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    12
  affiliation: {type: Schema.ObjectId, ref: 'Organization'},
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    13
  picture: String,
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    14
  picture_thumb: String,
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    15
  groups: [{type: Schema.ObjectId, ref: 'Group'}],
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    16
  tags: [String],
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    17
  lastKnownPosition: { shortname: {type: String, index: true}, 
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    18
		       name: String,
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    19
		       time: Date}
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    20
});
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    21
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    22
mongoose.model('People', People);
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    23
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    24
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    25
var Organization = new Schema({
252
36dbd50d8eab replacing "w3cId" with "slug"
Dominqique Hazael-Massieux <dom@w3.org>
parents: 207
diff changeset
    26
  slug: {type: String, unique: true},
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    27
  name: {type: String, unique: true},
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    28
  url: {type: String},
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    29
  groups: [{type: Schema.ObjectId, ref: 'Group'}],
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    30
  employees: [{type: Schema.ObjectId, ref: 'People'}]
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    31
});
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    32
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    33
var Group = new Schema({
252
36dbd50d8eab replacing "w3cId" with "slug"
Dominqique Hazael-Massieux <dom@w3.org>
parents: 207
diff changeset
    34
  slug: {type: String, unique: true},
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    35
  name: {type: String, unique: true},
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    36
  url: {type: String, unique: true}
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    37
});
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    38
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    39
var Place = new Schema({
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    40
  shortname: {type: String, unique: true},
121
c0068c0ddcab added checked in person in place model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 48
diff changeset
    41
  name: {type: String, unique: true},
599
96ea469bcb76 added level to Place
Dominique Hazaël-Massieux <dom@w3.org>
parents: 573
diff changeset
    42
  level: Number,
121
c0068c0ddcab added checked in person in place model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 48
diff changeset
    43
  checkedin: [{type: Schema.ObjectId, ref: 'People'}]
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    44
});
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
    45
168
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    46
var StatusUpdate = new Schema({
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    47
    author: {type: Schema.ObjectId, ref: 'People'},
573
9a6b1e3745a6 support for statusupdate type for new events
Dominique Hazael-Massieux <dom@w3.org>
parents: 559
diff changeset
    48
    statusType: {type: String, enum: ["tweet", "checkin", "interest", "profile", "event"]},
168
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    49
    content: String,
668
e71c0d05230c statusupdate can take either a plain text content attribute, or contentHTML for trusted sources
Dominique Hazaël-Massieux <dom@w3.org>
parents: 599
diff changeset
    50
    contentHTML: String,
168
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    51
    time: Date
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    52
});
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
    53
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    54
var Event  = new Schema({
309
bc237ba0e0d4 added slug for events
Dominique Hazaël-Massieux <dom@w3.org>
parents: 306
diff changeset
    55
    slug: String,
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    56
    registered: [{type: Schema.ObjectId, ref: 'People'}],
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    57
    interested: [{type: Schema.ObjectId, ref: 'People'}],
521
d9d199191c80 organizing code for allowing to add ad-hoc events
Dominique Hazael-Massieux <dom@w3.org>
parents: 393
diff changeset
    58
    eventType : {type: String, enum: ["meeting", "adhoc", "meal", "werewolf", "run"]},
393
aaf93e8dbfa2 added support for observers/confidentiality param for events
Dominique Hazaël-Massieux <dom@w3.org>
parents: 309
diff changeset
    59
    confidentiality: {type: String, enum: ["member", "public"]},
aaf93e8dbfa2 added support for observers/confidentiality param for events
Dominique Hazaël-Massieux <dom@w3.org>
parents: 309
diff changeset
    60
    observers: {type: String, enum: ["chairs", "member", "no"]},
543
31a1797c9f8f type of status update
Dominique Hazael-Massieux <dom@w3.org>
parents: 521
diff changeset
    61
    proposedBy: {type: Schema.ObjectId, ref: 'People'},
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    62
    name: String,
261
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    63
    description: String,
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
    64
    presenters: String,
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
    65
    room: {type: Schema.ObjectId, ref: 'Place'},
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    66
    timeStart: Date,
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    67
    timeEnd: Date
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    68
});
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
    69
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
    70
/*
261
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    71
var EventRating = new Schema({
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    72
    event: {type: Schema.ObjectId, ref:'Event'},
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    73
    rating: {type: String, enum: ['interested', 'very interested', "can't miss it", "not interested"]},
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    74
    rater: {type: Schema.ObjectId, ref: 'People'}
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
    75
});*/
261
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    76
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
    77
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    78
var TaxiFromAirport = new Schema({
21
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    79
  flight: {airline: String, code: String, eta: Date, airport: {type: String, enum:['San Jose', 'San Francisco', 'Oakland']}, terminal: String},
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    80
  requester: {type: Schema.ObjectId, ref: 'People'},
21
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    81
  sharingOffers: [Number],
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    82
  sharing: [Number]
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    83
});
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    84
39
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    85
mongoose.model('TaxiFromAirport', TaxiFromAirport);
54d9001dfd80 using populate feature from mongoose 2
Dominique Hazaël-Massieux <dom@w3.org>
parents: 32
diff changeset
    86
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    87
var TaxiToAirport = new Schema({
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    88
  minTime: Date,
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    89
  maxTime: Date,
21
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    90
  airport: {type: String, enum:['San Jose', 'San Francisco', 'Oakland']},
48
530d3ac8f0ae requester is People, not Group
Dominique Hazaël-Massieux <dom@w3.org>
parents: 39
diff changeset
    91
  requester: {type: Schema.ObjectId, ref: 'People'},
21
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    92
  sharingOffers: [Number],
34143a5da640 preliminary support for taxi pooling
Dominqique Hazael-Massieux <dom@w3.org>
parents: 19
diff changeset
    93
  sharing: [Number]
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    94
});
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
    95
184
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
    96
var TwitterSettings = new Schema({
185
c7cfaf5252d0 tweak twitter settings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 184
diff changeset
    97
  list: {
c7cfaf5252d0 tweak twitter settings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 184
diff changeset
    98
      owner: String,
c7cfaf5252d0 tweak twitter settings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 184
diff changeset
    99
      slug: String
c7cfaf5252d0 tweak twitter settings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 184
diff changeset
   100
  },
184
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   101
  username: String,
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   102
  password: String,
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   103
  ids:  [Number]
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   104
});
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   105
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   106
mongoose.model('Organization', Organization);
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   107
mongoose.model('Group', Group);
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   108
mongoose.model('Place', Place);
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
   109
mongoose.model('Event', Event);
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
   110
//mongoose.model('EventRating', EventRating);
168
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   111
mongoose.model('StatusUpdate', StatusUpdate);
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   112
mongoose.model('TaxiToAirport', TaxiToAirport);
184
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   113
mongoose.model('TwitterSettings', TwitterSettings);
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   114
exports.People = function(db) {
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   115
  return db.model('People');
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   116
};
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   117
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   118
exports.Organization = function(db) {
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   119
  return db.model('Organization');
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   120
};
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   121
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   122
exports.Group = function(db) {
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   123
  return db.model('Group');
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   124
};
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   125
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   126
exports.Place = function(db) {
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   127
  return db.model('Place');
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   128
};
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   129
168
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   130
exports.StatusUpdate = function(db) {
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   131
  return db.model('StatusUpdate');
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   132
};
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   133
4de8f22f9abb status update as its own
Dominqique Hazael-Massieux <dom@w3.org>
parents: 158
diff changeset
   134
158
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
   135
exports.Event = function(db) {
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
   136
  return db.model('Event');
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
   137
};
d4ccad159e0a added structure for events
Dominqique Hazael-Massieux <dom@w3.org>
parents: 121
diff changeset
   138
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
   139
/*
261
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
   140
exports.EventRating = function(db) {
7fccad6eae45 structure for eventrating
Dominqique Hazael-Massieux <dom@w3.org>
parents: 252
diff changeset
   141
  return db.model('EventRating');
306
1863c48d7631 updated event model
Dominique Hazaël-Massieux <dom@w3.org>
parents: 261
diff changeset
   142
};*/
0
e7f093ebd304 import of initial code for prototype of node.js based server for tpac web app
Dominique Hazaël-Massieux <dom@w3.org>
parents:
diff changeset
   143
17
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   144
exports.TaxiToAirport = function(db) {
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   145
  return db.model('TaxiToAirport');
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   146
};
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   147
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   148
exports.TaxiFromAirport = function(db) {
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   149
  return db.model('TaxiFromAirport');
2ebd3297c5b6 data models for taxi management
Dominqique Hazael-Massieux <dom@w3.org>
parents: 0
diff changeset
   150
};
184
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   151
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   152
exports.TwitterSettings = function(db) {
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   153
  return db.model('TwitterSettings');
086d070c5721 added (probably temporary) model for twittersettings
Dominique Hazaël-Massieux <dom@w3.org>
parents: 171
diff changeset
   154
};