mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
26 lines
679 B
JavaScript
26 lines
679 B
JavaScript
module.exports = (sequelize, Sequelize) => {
|
|
const SyncbackRequest = sequelize.define('SyncbackRequest', {
|
|
type: Sequelize.STRING,
|
|
status: Sequelize.STRING,
|
|
error: {
|
|
type: Sequelize.STRING,
|
|
get: function get() {
|
|
return JSON.parse(this.getDataValue('error'))
|
|
},
|
|
set: function set(val) {
|
|
this.setDataValue('error', JSON.stringify(val));
|
|
},
|
|
},
|
|
props: {
|
|
type: Sequelize.STRING,
|
|
get: function get() {
|
|
return JSON.parse(this.getDataValue('props'))
|
|
},
|
|
set: function set(val) {
|
|
this.setDataValue('props', JSON.stringify(val));
|
|
},
|
|
},
|
|
});
|
|
|
|
return SyncbackRequest;
|
|
};
|