-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
99 lines (82 loc) · 1.82 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
from dataclasses import dataclass
@dataclass
class Experience:
"""
Summary
-------
dataclass for experiences schema
Attributes
----------
title (str): title
company (str): company
start_date (str): start date
end_date (str): end date
description (str): description
logo (str): logo
"""
title: str
company: str
start_date: str
end_date: str
description: str
logo: str
@dataclass
class Education:
"""
Summary
-------
dataclass for educations schema
Attributes
----------
course (str): course name
school (str): school name
start_date (str): start date
end_date (str): end date
grade (str): grade
logo (str): logo
"""
course: str
school: str
start_date: str
end_date: str
grade: str
logo: str
@dataclass
class Skill:
"""
Summary
-------
dataclass for skills schema
Attributes
----------
name (str): skill name
proficiency (str): skill proficiency
logo (str): logo
"""
name: str
proficiency: str
logo: str
@dataclass
class User:
"""
Summary
-------
dataclass for user schema
Attributes
----------
name (str): user name
phone (str): user phone
email (str): user email
resume_order (list): user resume order
where 1-> Experience, 2 -> Education, 3 -> Skills
Example:
```
# this means that we have a user with name Jon Doe, with other properties. The `resume_order` is used to specify that
# this user wants their resume to be represented in a particular order: (Experience, Education, and Skill)
user = User(name='Jon Doe', phone'+2348050590740', email'[email protected]', resume_order = '[1, 2, 3]')
```
"""
name: str
phone: str
email: str
resume_order: str