spee.ch/models/analytics.js

30 lines
543 B
JavaScript
Raw Normal View History

module.exports = (sequelize, { STRING }) => {
2017-06-28 01:25:35 +02:00
const Analytics = sequelize.define(
'Analytics',
{
action: {
type : STRING,
allowNull: false,
},
url: {
type : STRING,
allowNull: false,
},
ipAddress: {
type : STRING,
allowNull: true,
2017-06-28 06:32:05 +02:00
default : null,
},
result: {
type : STRING,
2017-06-28 06:32:05 +02:00
allowNull: true,
default : null,
},
},
{
freezeTableName: true,
}
);
2017-06-28 01:25:35 +02:00
return Analytics;
};