UNPKG

@speakr/speakr-module-services

Version:
31 lines (29 loc) 581 B
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('accounts_stats', { id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, account_id: { type: DataTypes.INTEGER, allowNull: true, references: { model: 'accounts', key: 'id' } }, created_at: { type: DataTypes.DATE, allowNull: true }, updated_at: { type: DataTypes.DATE, allowNull: true } }, { underscored: true }); };