7da97e2933
Semicolon rule enforced as the main lbry-app uses semicolons!
39 lines
737 B
JavaScript
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;
|
|
};
|