UNPKG

@speakr/speakr-module-services

Version:
87 lines (83 loc) 1.79 kB
'use strict'; let _ = require('underscore'); module.exports = function(sequelize, DataTypes) { let reports_impressions = sequelize.define('reports_impressions', { report_id: { type: DataTypes.INTEGER, allowNull: false }, platform: { type: DataTypes.STRING, allowNull: true }, start: { type: DataTypes.DATE, allowNull: true }, end: { type: DataTypes.DATE, allowNull: true }, value: { type: DataTypes.INTEGER, allowNull: true }, added_value: { type: DataTypes.INTEGER, allowNull: true }, cost: { type: DataTypes.INTEGER, allowNull: true }, contracted: { type: DataTypes.INTEGER, allowNull: true }, delivered: { type: DataTypes.INTEGER, allowNull: true }, percent_delivery: { type: DataTypes.INTEGER, allowNull: true }, overage: { type: DataTypes.INTEGER, allowNull: true }, contracted_cpm: { type: DataTypes.INTEGER, allowNull: true }, effective_cpm: { type: DataTypes.INTEGER, allowNull: true }, percent_savings: { type: DataTypes.INTEGER, allowNull: true }, created_at: { type: DataTypes.DATE, allowNull: false }, updated_at: { type: DataTypes.DATE, allowNull: true }, content_type: { type: DataTypes.STRING, allowNull: true }, label: { type: DataTypes.STRING, allowNull: true } }, { underscored: true, paranoid: true }); return reports_impressions; };