{"size": 283, "ext": "js", "max_stars_repo_path": "server/models/timetable.js", "max_stars_repo_name": "RainyXY/graduation_design-master", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/models/timetable.js", "max_issues_repo_name": "RainyXY/graduation_design-master", "max_issues_repo_issues_event_min_datetime": "2020-09-04T04:03:24.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-04T04:03:24.000Z", "max_forks_repo_path": "server/models/timetable.js", "max_forks_repo_name": "RainyXY/graduation_design-master", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 18.8666666667, "max_line_length": 64, "alphanum_fraction": 0.6784452297}
const theDatabase = require('../config/db.js').theDb;
const timeSchema = theDatabase.import('../schema/timetable.js');

const getTimetable = async function(t_user) {
  return await timeSchema.findAndCount({
    where:{
      t_user
    }
  });
}

module.exports = {
  getTimetable
}
