-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
58 lines (47 loc) · 969 Bytes
/
models.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
from pydantic import BaseModel
class reg_user_model(BaseModel):
reg_no: str
passwd: str
name: str
tagline: str
description: str
skills: list[str]
looking_for: list[str]
types: list[str]
class login_user_model(BaseModel):
reg_no: str
passwd: str
class fetch_user_model(BaseModel):
id: int
reg_no: str
passwd: str
name: str
tagline: str
department: str
batch: int
last_seen: str
github: str
linkedin: str
twitter: str
skills: list[str]
looking_for: list[str]
type: list[str]
class like_model(BaseModel):
from_id: int
to_id: int
class dislike_model(BaseModel):
from_id: int
to_id: int
class match_model(BaseModel):
id1: int
id2: int
class fetch_course_model(BaseModel):
course: str
modules: dict
class chat_model(BaseModel):
id1: int
id2: int
class chat_text_model(BaseModel):
from_id: int
to_id: int
message: str