2017-03-14 05:02:43 +00:00
|
|
|
'use strict'
|
2017-03-08 10:45:51 +00:00
|
|
|
// external modules
|
|
|
|
var shortId = require('shortid')
|
2016-04-20 10:03:55 +00:00
|
|
|
|
|
|
|
module.exports = function (sequelize, DataTypes) {
|
2017-03-08 10:45:51 +00:00
|
|
|
var Temp = sequelize.define('Temp', {
|
|
|
|
id: {
|
|
|
|
type: DataTypes.STRING,
|
|
|
|
primaryKey: true,
|
|
|
|
defaultValue: shortId.generate
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
type: DataTypes.TEXT
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
return Temp
|
|
|
|
}
|