{"size": 366, "ext": "js", "max_stars_repo_path": "src/app/schema/Available.js", "max_stars_repo_name": "JeisonJHA/back-barber", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app/schema/Available.js", "max_issues_repo_name": "JeisonJHA/back-barber", "max_issues_repo_issues_event_min_datetime": "2021-05-10T09:16:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T21:12:11.000Z", "max_forks_repo_path": "src/app/schema/Available.js", "max_forks_repo_name": "JeisonJHA/back-barber", "max_forks_repo_forks_event_min_datetime": "2020-01-24T15:27:14.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-24T15:27:14.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 18.3, "max_line_length": 60, "alphanum_fraction": 0.6393442623}
import mongoose from 'mongoose';

import ScheduleSchema from './utils/ScheduleSchema';

const AvailableSchema = new mongoose.Schema(
  {
    schedule: {
      type: [ScheduleSchema],
      required: true,
    },
    user: {
      type: String,
      required: true,
    },
  },
  { timestamps: true }
);

export default mongoose.model('Available', AvailableSchema);
