spee.ch/models/file.js
Fillerino 7da97e2933 Semicolon rule added
Semicolon rule enforced as the main lbry-app uses semicolons!
2017-06-19 18:37:35 +02:00

39 lines
737 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;
};