4889e9732d
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
// 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
|
|
}
|