@speakr/speakr-module-services
Version:
SPEAKR Shared Service Module
31 lines (29 loc) • 581 B
JavaScript
/* 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
});
};