spee.ch/models/usage.js

28 lines
482 B
JavaScript
Raw Normal View History

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