.
This commit is contained in:
13
server/api/models/comment.js
Normal file
13
server/api/models/comment.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'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;
|
||||
};
|
||||
Reference in New Issue
Block a user