-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUser.py
49 lines (47 loc) · 1.3 KB
/
User.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
class User:
"""
User model used like a transfer object
Attributes:
id: User identifier
idType: User type
email: Email
username: Username
password: Password
salt: password salt
dateInsertion: When user was inserted
dateUpdate: Last user update
analysis: A list of analysis performed by user
"""
def __init__(
self,
id=0,
idType=0,
email="",
username="",
password="",
salt="",
dateInsertion="",
dateUpdate="",
analysis=[]):
"""
User model used like a transfer object
Args:
id: User identifier
idType: User type
email: Email
username: Username
password: Password
salt: password salt
dateInsertion: When user was inserted
dateUpdate: Last user update
analysis: A list of analysis performed by user
"""
self.id = id
self.idType = idType
self.email = email
self.username = username
self.password = password
self.salt = salt
self.dateInsertion = dateInsertion
self.dateUpdate = dateUpdate
self.analysis = analysis