tabase contains 3 collections with the following schema:
Kizspy.meta
apartment ({
apartmentName: {type: String, required: true, unique: true},
totalOfFloors: {type: Number, required: true},
},{ timestamps: true, });
resident ({
resident Name: {type: String, required: true, unique: true},
residentDescription: { type: String, required: true},
Zoom
floor: {type: Number, required: true, min: 1, max: 40},
YOB: {type: Number, required: true, min: 1940, max: 2025},
isOwned: {type: Boolean, default: false},
apartment: {type: mongoose.Schema. Types.ObjectId, ref: "apartment", required: true},
},{ timestamps: true, });
account ({
us {type: String, required: true},
pw{type: String, required: true},
+ 100%
Close