|
@@ -25,6 +25,7 @@ const Dock = {
|
|
|
apply: { type: [ apply ], default: [] },
|
|
|
is_allowed: { type: String, default: '0', maxLength: 1 },
|
|
|
reason: { type: String, required: true, maxLength: 200 },
|
|
|
+ user_id: { type: String, required: true, maxLength: 200 },
|
|
|
};
|
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|