summaryrefslogtreecommitdiff
path: root/lib/models/temp.js
blob: 2ad23fb54bec11c7883266b1aff29bf7555fe152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'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
}