can add images to forum posts and comments
This commit is contained in:
1 parent
b045fbeb01
commit
105f257c5f
13 files changed
+383
-78
No files matched your search
@@ -38,6 +38,11 @@ const ForumComment = sequelize.define('ForumComment', {
|
||||
isDeleted: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false
|
||||
},
|
||||
images: {
|
||||
type: DataTypes.ARRAY(DataTypes.TEXT),
|
||||
allowNull: true,
|
||||
defaultValue: []
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -51,6 +51,11 @@ const ForumPost = sequelize.define('ForumPost', {
|
||||
model: 'ForumComments',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
images: {
|
||||
type: DataTypes.ARRAY(DataTypes.TEXT),
|
||||
allowNull: true,
|
||||
defaultValue: []
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user