import mongoose from 'mongoose';

//publicFacilitySchema define the facilities document
const publicFacilitySchema = mongoose.Schema({
    name: { type: String, required: true},
    typology: { type: String, required: true},
    coordinates: { type: [Number], required: true} ,
    area: { type: Number, default: 0, required: true },
    data: { type:{}, required: true },
    users: { type: [String] }
}, { minimize: false });

export default mongoose.model('public_facilities', publicFacilitySchema);

