spee.ch/models/analytics.js
2017-06-27 21:32:05 -07:00

29 lines
543 B
JavaScript

module.exports = (sequelize, { STRING }) => {
const Analytics = sequelize.define(
'Analytics',
{
action: {
type : STRING,
allowNull: false,
},
url: {
type : STRING,
allowNull: false,
},
ipAddress: {
type : STRING,
allowNull: true,
default : null,
},
result: {
type : STRING,
allowNull: true,
default : null,
},
},
{
freezeTableName: true,
}
);
return Analytics;
};