html structure

This commit is contained in:
nau
2016-09-01 19:27:43 +02:00
parent 444c7ba772
commit 6fc97f805a
194 changed files with 17612 additions and 0 deletions

25
models/travelModel.js Normal file
View File

@@ -0,0 +1,25 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var travelSchema = new Schema({
title: { type: String },
description: { type: String },
owner: { type: String },
from: { type: String },
to: { type: String },
date: { type: Date },
periodic: { type: Boolean },
generateddate: { type: Date },
seats: { type: Number },
package: { type: Boolean },
icon: { type: String },
phone: { type: Number },
telegram: { type: String },
collectivized: { type: Boolean },
modality: { type: String } //if is an offering travel or asking for travel
})
module.exports = mongoose.model('travelModel', travelSchema);
//modality can be: offering, asking, package

14
models/userModel.js Normal file
View File

@@ -0,0 +1,14 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var userSchema = new Schema({
username: { type: String },
password: { type: String },
description: { type: String },
avatar: { type: String },
mail: { type: String },
phone: { type: String },
telegram: { type: String }
})
module.exports = mongoose.model('userModel', userSchema);