Skip to content

Instantly share code, notes, and snippets.

View santosh-suresh's full-sized avatar

Santosh Suresh santosh-suresh

View GitHub Profile
@santosh-suresh
santosh-suresh / README.md
Created November 15, 2016 17:19 — forked from felipegasparini/README.md
Ecto Postgres tsrange data type
var mongoose = require('mongoose');
mongoose.connect('localhost', 'testing_multiTenant');
/**
* User schema.
*/
var UserSchema = new mongoose.Schema({
name: String
, prefix: { type: String, required: true }
[
{
"text": "This is the first question",
"options": ["answer1","answer2","answer3","answer4"],
"answer": 2
},
{
"text": "This is the second question",
"options": ["answer 1","answer 2","answer 3", "answer 4"],
"answer": 1