19 lines
487 B
JavaScript
19 lines
487 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const FailedEmail = sequelize.define('failed_emails', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
email: type.TEXT,
|
|
cohort: type.TEXT,
|
|
message: type.TEXT,
|
|
email_type: type.TEXT,
|
|
mail_success: type.INTEGER,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return FailedEmail;
|
|
} |