UNPKG

@speakr/speakr-module-services

Version:
75 lines (71 loc) 1.51 kB
'use strict'; let _ = require('underscore'); module.exports = function(sequelize, DataTypes) { let reports_creatives = sequelize.define('reports_creatives', { campaign_id_hash: { type: DataTypes.STRING, allowNull: false }, avatar: { type: DataTypes.STRING, allowNull: true }, username: { type: DataTypes.STRING, allowNull: true }, link: { type: DataTypes.STRING, allowNull: true }, initiative: { type: DataTypes.STRING, allowNull: true }, client: { type: DataTypes.STRING, allowNull: true }, platform: { type: DataTypes.STRING, allowNull: true }, media: { type: DataTypes.STRING, allowNull: true }, message: { type: DataTypes.STRING, allowNull: true }, engagements: { type: DataTypes.INTEGER, allowNull: true }, impressions: { type: DataTypes.INTEGER, allowNull: true }, shares: { type: DataTypes.INTEGER, allowNull: true }, followers: { type: DataTypes.INTEGER, allowNull: true }, timestamp: { type: DataTypes.DATE, allowNull: true }, callout: { type: DataTypes.BOOLEAN, allowNull: true }, }, { underscored: true, paranoid: true }); return reports_creatives; };