-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
102 lines (78 loc) · 1.95 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
100
101
102
class Team:
def __init__(self, pk, name, members):
self.pk = pk
self.name = name
self.members = members
class Song:
foreign_keys = {
'team': Team,
}
def __init__(self, pk, title, team):
self.pk = pk
self.title = title
self.team = team
class Series:
def __init__(self, pk, title):
self.pk = pk
self.title = title
class Character:
def __init__(self, pk, first_name, last_name, icon_url):
self.pk = pk
self.first_name = first_name
self.last_name = last_name
self.icon_url = icon_url
class Brand:
def __init__(self, pk, name):
self.pk = pk
self.name = name
class Coordinate:
foreign_keys = {
'brand': Brand,
'character': Character,
}
def __init__(self, pk, name, brand, character):
self.pk = pk
self.name = name
self.brand = brand
self.character = character
class Episode:
foreign_keys = {
'series': Series,
}
def __init__(self, pk, series, number, title):
self.pk = pk
self.series = series
self.number = number
self.title = title
class Md:
foreign_keys = {
'team': Team,
}
def __init__(self, pk, title, team):
self.pk = pk
self.title = title
self.team = team
class Live:
foreign_keys = {
'episode': Episode,
'team': Team,
'song': Song,
'md': Md,
'coordinate': Coordinate,
}
def __init__(self, pk, episode, team, song, md, coordinate):
self.pk = pk
self.episode = episode
self.team = team
self.song = song
self.md = md
self.coordinate = coordinate
class TeamMember:
foreign_keys = {
'team': Team,
'member': Character,
}
def __init__(self, pk, team, character):
self.pk = pk
self.team = team
self.member = character