Files
gancio/server/api/models/comment.js
2019-06-25 01:06:31 +02:00

14 lines
354 B
JavaScript

'use strict'
module.exports = (sequelize, DataTypes) => {
const comment = sequelize.define('comment', {
activitypub_id: DataTypes.STRING(18),
data: DataTypes.JSON
}, {})
comment.associate = function (models) {
comment.belongsTo(models.event)
// Event.hasMany(Comment)
// associations can be defined here
}
return comment
};