create zipline model
This commit is contained in:
21
models/Zipline.js
Normal file
21
models/Zipline.js
Normal file
@ -0,0 +1,21 @@
|
||||
var mongoose = require('mongoose');
|
||||
var secrets = require('../config/secrets');
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {exports.Schema}
|
||||
*/
|
||||
|
||||
|
||||
var zipLineSchema = new mongoose.Schema({
|
||||
name: {
|
||||
type: String,
|
||||
unique: true
|
||||
},
|
||||
picture: String,
|
||||
gitHubLink: String,
|
||||
demoLink: String,
|
||||
description: Array,
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('Zipline', zipLineSchema);
|
Reference in New Issue
Block a user