const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('TrackedemailItem', { id: { autoIncrement: true, type: DataTypes.BIGINT, allowNull: false, primaryKey: true }, member_id: { type: DataTypes.INTEGER, allowNull: true }, subject: { type: DataTypes.STRING(250), allowNull: true }, message: { type: DataTypes.TEXT, allowNull: true }, created: { type: DataTypes.DATE, allowNull: true, defaultValue: Sequelize.Sequelize.fn('now') }, message_from: { type: DataTypes.STRING(250), allowNull: true }, hash: { type: DataTypes.STRING(250), allowNull: true }, date_parsed: { type: DataTypes.DATE, allowNull: true }, oauth2_pull_job_id: { type: DataTypes.INTEGER, allowNull: true }, message_date: { type: DataTypes.DATE, allowNull: true }, parsed_status: { type: DataTypes.INTEGER, allowNull: true } }, { sequelize, tableName: 'trackedemail_item', schema: 'public', timestamps: false }); };