better documentation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
'use strict'
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
const comment = sequelize.define('comment', {
|
||||
activitypub_id: {
|
||||
type: DataTypes.STRING(18),
|
||||
@@ -10,8 +10,6 @@ module.exports = (sequelize, DataTypes) => {
|
||||
}, {})
|
||||
comment.associate = function (models) {
|
||||
comment.belongsTo(models.event)
|
||||
// Event.hasMany(Comment)
|
||||
// associations can be defined here
|
||||
}
|
||||
return comment
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user