-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
61 lines (52 loc) · 1.59 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
class User:
def __init__(self, id, username, password, email, role):
self.id = id
self.username = username
self.password = password
self.email = email
self.role = role
class Role:
def __init__(self, id, name):
self.id = id
self.name = name
class Complaint:
def __init__(self, id, content, client_id):
self.id = id
self.content = content
self.client_id = client_id
class Action:
def __init__(self, id, name, action, client_id):
self.id = id
self.name = name
self.action = action
self.client_id = client_id
class Client:
def __init__(self, id, first_name, last_name, age, photo, banned, user_id, information_id, location_id):
self.id = id
self.first_name = first_name
self.last_name = last_name
self.age = age
self.photo = photo
self.banned = banned
self.user_id = user_id
self.information_id = information_id
self.location_id = location_id
class Information:
def __init__(self, id, hobbies, occupation, other):
self.id = id
self.hobbies = hobbies
self.occupation = occupation
self.other = other
class Chat:
def __init__(self, id, name, messages, partner):
self.id = id
self.name = name
self.messages = messages
self.partner = partner
class Message:
def __init__(self, id, content, datetime, sender, chat):
self.id = id
self.content = content
self.datetime = datetime
self.sender = sender
self.chat = chat