const mongoose = require('mongoose') const Property = require('./propertyModel') const landSchema = new mongoose.Schema({ landArea: { type: Number, // مساحت زمین به متر مربع }, zoningType: { type: String, // نوع کاربری (مسکونی، کشاورزی، تجاری و ...) }, boundaryCoordinates: { type: [[Number]], // مختصات چندضلعی حدود ملک }, streetWidth: { type: Number, // عرض گذر (متر) }, facadeCount: { type: Number, // تعداد بر }, landLength: { type: Number, // طول زمین (متر) }, landWidth: { type: Number, // عرض زمین (متر) }, }) const Land = Property.discriminator('Land', landSchema) module.exports = Land