react-hackathon-board
Version:
Hackathon board with React/node/mongo
27 lines (23 loc) • 589 B
JavaScript
import mongoose from 'mongoose';
import Promise from 'bluebird';
mongoose.Promise = Promise;
var Schema = mongoose.Schema;
var HackathonSchema = new Schema({
id: Number,
title: String,
shortDescription: String,
description: String,
rules: String,
prizes: String,
startDate: Date,
endDate: Date,
location: String,
pictureURL: String,
category: String,
season: String,
open: { type: Boolean, default: false },
active: { type: Boolean, default: false},
owner: String
});
var Hackathon = mongoose.model('Hackathon', HackathonSchema);
export default Hackathon;