gancio-upstream/server/api/models/comment.js
2019-09-11 19:12:24 +02:00

15 lines
342 B
JavaScript

'use strict'
module.exports = (sequelize, DataTypes) => {
const comment = sequelize.define('comment', {
activitypub_id: {
type: DataTypes.STRING(18),
index: true,
unique: true
},
data: DataTypes.JSON
}, {})
comment.associate = function (models) {
comment.belongsTo(models.event)
}
return comment
}