Browse Source

add new properity

itizawa 5 năm trước cách đây
mục cha
commit
cf3869778f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/server/models/page.js

+ 2 - 0
src/server/models/page.js

@@ -66,6 +66,8 @@ const pageSchema = new mongoose.Schema({
   hasDraftOnHackmd: { type: Boolean }, // set true if revision and revisionHackmdSynced are same but HackMD document has modified
   createdAt: { type: Date, default: Date.now },
   updatedAt: { type: Date, default: Date.now },
+  deleteUser: { type: ObjectId, ref: 'User' },
+  deletedAt: { type: Date },
 }, {
   toJSON: { getters: true },
   toObject: { getters: true },