• This project
    • Loading...
  • Sign in

이나경 / time_table

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • time_table
  • DB_collect
  • models
  • model.js
  • 송민석's avatar
    Success DB collection · f102d298
    f102d298
    송민석 authored 2022-06-07 13:32:56 +0900
model.js 429 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
const mongoose = require("mongoose");

  const TimeSchema = new mongoose.Schema({
    time: String,
    prof: String,
  });

  const SubSchema = new mongoose.Schema({
    campus: String,
    college: String,
    department: String,
    grade: String,
    name: String,
    credit: String,
    choice: String,
    subject: [TimeSchema]
  });

  const Subinfo = mongoose.model('Subinfo', SubSchema);
  module.exports = { Subinfo };