{"size": 341, "ext": "js", "max_stars_repo_path": "models/Reserva.js", "max_stars_repo_name": "bugen86/futbol5lodelruso", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "models/Reserva.js", "max_issues_repo_name": "bugen86/futbol5lodelruso", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/Reserva.js", "max_forks_repo_name": "bugen86/futbol5lodelruso", "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": 17.9473684211, "max_line_length": 50, "alphanum_fraction": 0.5278592375}
const { Schema, model } = require("mongoose");

const reservaSchema = Schema({
    cancha: {
        type: Number,
        required: true,
    },
    name: {
        type: String,
        required: true,
    },
    ts_created: {
        type: Date,
        default: Date.now(),
    },
});

module.exports = model("reservas", reservaSchema);
