summaryrefslogtreecommitdiff
path: root/lib/models/temp.js
blob: 6eeff1530136ffc8541daff2536057959b0d92cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";

//external modules
var shortId = require('shortid');

module.exports = function (sequelize, DataTypes) {
    var Temp = sequelize.define("Temp", {
        id: {
            type: DataTypes.STRING,
            primaryKey: true,
            defaultValue: shortId.generate
        },
        data: {
            type: DataTypes.TEXT
        }
    });
    
    return Temp;
};