mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
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) {
|
|
fed_users.belongsTo(models.instances)
|
|
// associations can be defined here
|
|
}
|
|
return fed_users
|
|
}
|