---
# System prepended metadata

title: create-timetable 建立課表
tags: [timetable]

---

###### tags: `timetable`
# create-timetable 建立課表
## /create-timetable
front to back

| 說明     | key        | value |
| -------- | ---------- | ----- |
| 帳號     | uid     | string      |
| 學校     | school     | string      |
| 學年     | schoolYear | string      |
| 學期     | semester   | string      |
| 開始日期 | startDate  |  datetime     |
| 結束日期 | endDate    |   datetime    |
| 課程     | subject    |   object    |

&nbsp;
&nbsp;

| 課程{}   |             |          |
| -------- | ----------- | -------- |
| 課程名稱 | subjectName | string   |
| 課程開始 | startTime   | datetime |
| 課程結束 | endTime     | datetime |
| 星期     | week        | string      |
| 節次     | section     | string   |

back to front

| 說明         | key      | value |
| ------------ | -------- | ----- |
| 建立課表結果 | response |  bool     |

---
uid:
 >personal_timetable>user_id

school:
 >school>school_name

schoolYear:
 >personal_timetable>semester

兩個會合起來存回資料庫

semester:
 >personal_timetable>semester

startDate:
 >personal_timetable>semester_start

endDate:
 >personal_timetable>semester_end

subjectName:
 >subject>subject_name

startTime:
 >class_time>start

endTime:
 >class_time>end
 
week:
 >section>weekday