spee.ch/models/usage.js
2017-06-27 15:53:53 -07:00

27 lines
482 B
JavaScript

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;
};