@speakr/speakr-module-services
Version:
SPEAKR Shared Service Module
35 lines (33 loc) • 699 B
JavaScript
'use strict';
module.exports = function(sequelize, DataTypes) {
return sequelize.define('invites', {
initiative_id: {
type: DataTypes.INTEGER,
allowNull: false
},
account_id: {
type: DataTypes.INTEGER,
allowNull: false
},
offer_price: {
type: DataTypes.BIGINT,
allowNull: true
},
promo_link: {
type: DataTypes.STRING,
allowNull: true
},
accounts_networks_id: {
type: DataTypes.INTEGER,
allowNull: true
},
deleted_at: {
type: DataTypes.DATE,
allowNull: true
},
id_hash: DataTypes.STRING
}, {
tableName: 'initiatives_accounts_invites',
paranoid: true
});
};