zone updates

This commit is contained in:
2025-03-26 12:23:03 +05:30
parent 723cdf8dc5
commit 679f16244f
4 changed files with 49 additions and 38 deletions

View File

@@ -6,6 +6,8 @@ export interface zoneSchema extends Document {
createBy: mongoose.Types.ObjectId
points: []
layer: Number
viewPortCenter: []
viewPortposition: []
}
@@ -16,6 +18,8 @@ const zoneSchema: Schema = new Schema({
createBy: { type: Schema.Types.ObjectId, ref: "Users", },
points: { type: Array },
layer: { type: Number, required: true },
viewPortCenter: { type: Array, required: true },
viewPortposition: { type: Array, required: true },
});