-
Notifications
You must be signed in to change notification settings - Fork 0
/
schemas.py
78 lines (70 loc) · 1.36 KB
/
schemas.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from xmlrpc.client import DateTime
from pydantic import BaseModel, EmailStr
from datetime import datetime
class Users(BaseModel):
login_id: str
login_pw: str
login_name: str
login_email: str
login_certification_number: int
class Category(BaseModel):
user_id: int
name: str
color: str
isTodo: int
class Todo(BaseModel):
user_id: int
name: str
date: str
cName: str
state: int
class Calendar (BaseModel):
user_id: int
name: str
color: str
allDay: int
startDate: str
startTime: str
endDate: str
endTime: str
location: str
alarm: int
alarmTime: str
memo: str
class TimeTracker(BaseModel):
user_id: int
name: str
today: str
cName: str
class TimeTrackerOrder(BaseModel):
user_id: int
list_id: int
order: int
startTime: str
endTime: str
timeTaken: str
class Habit(BaseModel):
user_id: int
name: str
today: str
startDate: str
endDate: str
alarmSwitch: int
alarm: str
repeatDay: str
repeatN: int
habit_color: str
habit_nfc: str
habit_state: int
dayOfWeek: int
class Setting(BaseModel):
user_id: int
alarm_switch: int
todo_time: str
todo_switch: int
habit_time: str
habit_switch: int
calendar_time: str
calendar_switch: int
time_switch: int
dark_mode: int