improve installation/documentation

This commit is contained in:
lesion
2019-07-03 16:58:24 +02:00
parent 6a96193ffc
commit 412e6f7dae
11 changed files with 131 additions and 129 deletions

View File

@@ -1,7 +1,11 @@
'use strict'
module.exports = (sequelize, DataTypes) => {
const comment = sequelize.define('comment', {
activitypub_id: DataTypes.STRING(18),
activitypub_id: {
type: DataTypes.STRING(18),
index: true,
unique: true,
},
data: DataTypes.JSON
}, {})
comment.associate = function (models) {