mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
17 lines
414 B
JavaScript
17 lines
414 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)
|
|
// Event.hasMany(Comment)
|
|
// associations can be defined here
|
|
}
|
|
return comment
|
|
};
|