UNPKG

@speakr/speakr-module-services

Version:
41 lines (38 loc) 791 B
'use strict'; let _ = require('underscore'); module.exports = function (sequelize, DataTypes) { let point_of_contacts = sequelize.define('point_of_contacts', { id: { type: DataTypes.INTEGER, autoIncrement: true, allowNull: false, primaryKey: true }, id_hash: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, allowNull: false }, name: { type: DataTypes.STRING }, email: { type: DataTypes.STRING }, campaign_id: { type: DataTypes.INTEGER, allowNull: false }, created_at: { type: DataTypes.DATE, allowNull: false }, updated_at: { type: DataTypes.DATE, allowNull: false } }, { underscored: true }); return point_of_contacts; };