Can mark a comment as the answer, some layout changes

This commit is contained in:
jackiettran committed 2025-11-11 18:23:11 -05:00
1 parent 825389228d
commit b045fbeb01
11 files changed
+379 -323

No files matched your search

+9 -1
View File
@@ -29,7 +29,7 @@ const ForumPost = sequelize.define('ForumPost', {
defaultValue: 'general_discussion'
},
status: {
type: DataTypes.ENUM('open', 'solved', 'closed'),
type: DataTypes.ENUM('open', 'answered', 'closed'),
defaultValue: 'open'
},
viewCount: {
@@ -43,6 +43,14 @@ const ForumPost = sequelize.define('ForumPost', {
isPinned: {
type: DataTypes.BOOLEAN,
defaultValue: false
},
acceptedAnswerId: {
type: DataTypes.UUID,
allowNull: true,
references: {
model: 'ForumComments',
key: 'id'
}
}
});