Setup schema and tests.
This commit is contained in:
parent
806f42e3f8
commit
de0284e48a
7 changed files with 49 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue