{"size": 808, "ext": "js", "max_stars_repo_path": "src/models/util/city.js", "max_stars_repo_name": "kbhh/salesapp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/models/util/city.js", "max_issues_repo_name": "kbhh/salesapp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/models/util/city.js", "max_forks_repo_name": "kbhh/salesapp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.7647058824, "max_line_length": 58, "alphanum_fraction": 0.3849009901}
import mongoose, { Schema } from "mongoose";  
import { date } from "joi";

class CityModel {
    init() {
        let CitySchema = new Schema({ 
            Name:String,
            Type:String, // small , large
          
            pricing:[{
                 branch:{
                     Mantruck:{
                         cost:Number,
                         status:String
                     },
                     OtherCost:{
                        cost:Number,
                        status:String
                    },
                },
            }
            ]

        }, {timestamps: true});         
        const City = mongoose.model("City", DriverSchema);
    }

    getModel() {
        this.init();
        return mongoose.model("City");
    }
}

export default TransportModel 