You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.8 KiB
80 lines
1.8 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const EmailSendLog = sequelize.define("emailSendLog", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "email_send_log_id_uindex"
|
|
},
|
|
time: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "time",
|
|
autoIncrement: false
|
|
},
|
|
pushConfigId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "push_config_id",
|
|
autoIncrement: false
|
|
},
|
|
tactics: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "tactics",
|
|
autoIncrement: false
|
|
},
|
|
tacticsParams: {
|
|
type: DataTypes.JSONB,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "tactics_params",
|
|
autoIncrement: false
|
|
},
|
|
projectCorrelationId: {
|
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "project_correlation_id",
|
|
autoIncrement: false
|
|
},
|
|
toPepUserIds: {
|
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "to_pep_user_ids",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "email_send_log",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.EmailSendLog = EmailSendLog;
|
|
return EmailSendLog;
|
|
};
|