can add images to forum posts and comments
This commit is contained in:
@@ -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