-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam_stat.py
57 lines (54 loc) · 1.5 KB
/
team_stat.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
from init import Base
from sqlalchemy import Column, ForeignKey, Integer, Float, Enum
class TeamStat(Base):
__tablename__ = 'team_stat'
game_id = Column(Integer, ForeignKey('game.id'), primary_key=True)
ha = Column(Enum('H', 'A'), primary_key=True)
team_id = Column(Integer, ForeignKey('team.id'))
result = Column(Enum('W', 'L'))
STLP = Column(Float)
FT = Column(Integer)
b2PA = Column(Integer)
FG = Column(Integer)
DRB = Column(Integer)
ORBP = Column(Float)
AST = Column(Integer)
b3PAr = Column(Float)
PF = Column(Integer)
FGA = Column(Integer)
DRBr = Column(Float)
b2P = Column(Integer)
ORBr = Column(Float)
TOVP = Column(Float)
ASTP = Column(Float)
FTAr = Column(Float)
FIC = Column(Float)
eFGP = Column(Float)
FGP = Column(Float)
b2PAr = Column(Float)
PlusMinus = Column(Integer)
USGP = Column(Float)
DRtg = Column(Float)
b2PP = Column(Float)
DRBP = Column(Float)
ORtg = Column(Float)
TRBP = Column(Float)
ORB = Column(Integer)
b3P = Column(Integer)
TOV = Column(Integer)
STLonTOV = Column(Float)
TSA = Column(Float)
ASTonTOV = Column(Float)
b3PA = Column(Integer)
BLKP = Column(Float)
FTP = Column(Float)
PTS = Column(Integer)
HOB = Column(Float)
STL = Column(Integer)
TRB = Column(Integer)
FTA = Column(Integer)
BLK = Column(Integer)
FTr = Column(Float)
TSP = Column(Float)
FTonFGA = Column(Float)
b3PP = Column(Float)