summaryrefslogtreecommitdiff
path: root/lib/models/temp.js
blob: dee6c573b62ddd156bf7cab4c0d6ffe9d078c323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
// external modules
const shortId = require('shortid')

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

  return Temp
}