mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
|
module.exports = (sequelize, Sequelize) => {
|
||
|
const File = sequelize.define('File', {
|
||
|
partId: Sequelize.STRING,
|
||
|
type: Sequelize.STRING,
|
||
|
subtype: Sequelize.STRING,
|
||
|
dispositionType: Sequelize.STRING,
|
||
|
size: Sequelize.INTEGER,
|
||
|
name: Sequelize.STRING,
|
||
|
}, {
|
||
|
classMethods: {
|
||
|
associate: ({Message}) => {
|
||
|
File.belongsTo(Message)
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return File;
|
||
|
};
|