Explorar o código

add new properity

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
cf3869778f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 },