fix #18, cache users from fediverse

This commit is contained in:
les
2019-09-12 14:59:51 +02:00
parent fca3b8739d
commit cf5c09e3b1
9 changed files with 158 additions and 34 deletions

View File

@@ -0,0 +1,13 @@
module.exports = (sequelize, DataTypes) => {
const fed_users = sequelize.define('fed_users', {
ap_id: {
type: DataTypes.STRING,
primaryKey: true
},
object: DataTypes.JSON
}, {})
fed_users.associate = function(models) {
// associations can be defined here
};
return fed_users
}