@speakr/speakr-module-services
Version:
SPEAKR Shared Service Module
67 lines (63 loc) • 1.39 kB
JavaScript
'use strict';
let _ = require('underscore');
module.exports = function(sequelize, DataTypes) {
let reports_engagements = sequelize.define('reports_engagements', {
report_id: {
type: DataTypes.INTEGER,
allowNull: false
},
estimated: {
type: DataTypes.INTEGER,
allowNull: true
},
delivered: {
type: DataTypes.INTEGER,
allowNull: true
},
overage: {
type: DataTypes.INTEGER,
allowNull: true
},
estimated_cpe: {
type: DataTypes.INTEGER,
allowNull: true
},
effective_cpe: {
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
},
contracted: {
type: DataTypes.INTEGER,
allowNull: true
},
contracted_cpe: {
type: DataTypes.INTEGER,
allowNull: true
},
content_type: {
type: DataTypes.STRING,
allowNull: true
},
label: {
type: DataTypes.STRING,
allowNull: true
}
},
{
underscored: true,
paranoid: true
});
return reports_engagements;
};