mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
module.exports = (sequelize, Sequelize) => {
|
|
const AccountToken = sequelize.define('AccountToken', {
|
|
value: Sequelize.STRING,
|
|
}, {
|
|
classMethods: {
|
|
associate: ({Account}) => {
|
|
AccountToken.belongsTo(Account, {
|
|
onDelete: "CASCADE",
|
|
foreignKey: {
|
|
allowNull: false,
|
|
},
|
|
});
|
|
},
|
|
},
|
|
});
|
|
|
|
return AccountToken;
|
|
};
|