vizualization updates
This commit is contained in:
@@ -1,25 +1,27 @@
|
||||
import mongoose, { Document, ObjectId, Schema } from "mongoose";
|
||||
import MainModel from "../../connect/mongoose";
|
||||
import MainModel from "../../connect/mongoose.ts";
|
||||
export interface zoneSchema extends Document {
|
||||
zoneId: string;
|
||||
zoneId: string;//UUID
|
||||
zoneName: string
|
||||
createBy: mongoose.Types.ObjectId
|
||||
points: []
|
||||
layer: Number
|
||||
viewPortCenter: []
|
||||
viewPortposition: []
|
||||
isArchive:boolean
|
||||
|
||||
}
|
||||
|
||||
// Define the Mongoose Schema
|
||||
const zoneSchema: Schema = new Schema({
|
||||
zoneId: { type: String },
|
||||
zoneId: { type: String },//UUID
|
||||
zoneName: { type: String },
|
||||
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 },
|
||||
isArchive:{type:Boolean,default:false}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user