spee.ch/models/file.js
Fillerino 085d099040 Edited code to be ES6, added eslint and some basic linting configuration
Edited code to be ES6, added eslint and some basic linting configuration,(also includes husky for auto eslint before push)
2017-06-17 22:51:30 +02:00

39 lines
734 B
JavaScript

module.exports = (sequelize, { STRING, BOOLEAN }) => {
const File = sequelize.define(
'File',
{
name: {
type : STRING,
allowNull: false,
},
claim_id: {
type : STRING,
allowNull: false,
},
outpoint: {
type : STRING,
allowNull: false,
},
file_name: {
type : STRING,
allowNull: false,
},
file_path: {
type : STRING,
allowNull: false,
},
file_type: {
type: STRING,
},
nsfw: {
type : BOOLEAN,
allowNull : false,
defaultValue: false,
},
},
{
freezeTableName: true,
}
)
return File
}