Files
gancio/server/api/models/comment.js

13 lines
356 B
JavaScript
Raw Normal View History

2019-06-06 23:54:32 +02:00
'use strict';
module.exports = (sequelize, DataTypes) => {
const comment = sequelize.define('comment', {
activitypub_id: DataTypes.BIGINT,
data: DataTypes.JSON
}, {});
comment.associate = function(models) {
comment.belongsTo(models.event)
// Event.hasMany(Comment)
// associations can be defined here
};
return comment;
};