Setup schema and tests.

This commit is contained in:
Jonathan Cremin 2016-06-19 11:17:31 -07:00
parent 806f42e3f8
commit de0284e48a
7 changed files with 49 additions and 17 deletions

View file

@ -4,6 +4,11 @@ export default function (sequelize, DataTypes) {
successful: { type: DataTypes.BOOLEAN },
ip: { type: 'inet' },
}, {
indexes: [
{
fields: ['ip'],
},
],
classMethods: {
associate: (models) => {
Login.belongsTo(models.user);