jrdb-model 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/PKG-INFO +2 -1
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/pyproject.toml +6 -3
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model/__init__.py +1 -1
- jrdb_model-0.2.2/src/jrdb_model/domain/bangumi.py +73 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/calculated_score.py +22 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/kaisai.py +49 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/predict.py +25 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/predict_race.py +23 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/racehorse.py +204 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/returninfo.py +129 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/seiseki.py +108 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/seisekirace.py +64 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/trainanalysis.py +40 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/trainoikiri.py +41 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/umaren_odds.py +26 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/wakuren_odds.py +26 -0
- jrdb_model-0.2.2/src/jrdb_model/domain/wide_odds.py +26 -0
- jrdb_model-0.2.2/src/jrdb_model/master/horsebase.py +36 -0
- jrdb_model-0.2.2/src/jrdb_model/master/jockey.py +61 -0
- jrdb_model-0.2.2/src/jrdb_model/master/mastercode.py +67 -0
- jrdb_model-0.2.2/src/jrdb_model/master/trainer.py +52 -0
- jrdb_model-0.2.2/src/jrdb_model/sessioncontroll.py +43 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model.egg-info/PKG-INFO +2 -1
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model.egg-info/SOURCES.txt +2 -1
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model.egg-info/requires.txt +1 -0
- jrdb_model-0.2.2/tests/test_integration.py +23 -0
- jrdb_model-0.2.1/src/jrdb_model/domain/bangumi.py +0 -64
- jrdb_model-0.2.1/src/jrdb_model/domain/calculated_score.py +0 -8
- jrdb_model-0.2.1/src/jrdb_model/domain/kaisai.py +0 -46
- jrdb_model-0.2.1/src/jrdb_model/domain/predict.py +0 -13
- jrdb_model-0.2.1/src/jrdb_model/domain/predict_race.py +0 -15
- jrdb_model-0.2.1/src/jrdb_model/domain/racehorse.py +0 -199
- jrdb_model-0.2.1/src/jrdb_model/domain/returninfo.py +0 -121
- jrdb_model-0.2.1/src/jrdb_model/domain/seiseki.py +0 -101
- jrdb_model-0.2.1/src/jrdb_model/domain/seisekirace.py +0 -58
- jrdb_model-0.2.1/src/jrdb_model/domain/trainanalysis.py +0 -32
- jrdb_model-0.2.1/src/jrdb_model/domain/trainoikiri.py +0 -33
- jrdb_model-0.2.1/src/jrdb_model/domain/umaren_odds.py +0 -19
- jrdb_model-0.2.1/src/jrdb_model/domain/wakuren_odds.py +0 -19
- jrdb_model-0.2.1/src/jrdb_model/domain/wide_odds.py +0 -19
- jrdb_model-0.2.1/src/jrdb_model/master/horsebase.py +0 -30
- jrdb_model-0.2.1/src/jrdb_model/master/jockey.py +0 -55
- jrdb_model-0.2.1/src/jrdb_model/master/mastercode.py +0 -68
- jrdb_model-0.2.1/src/jrdb_model/master/trainer.py +0 -53
- jrdb_model-0.2.1/src/jrdb_model/sessioncontroll.py +0 -35
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/LICENSE +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/README.md +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/setup.cfg +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model/domain/__init__.py +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model/master/__init__.py +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model.egg-info/dependency_links.txt +0 -0
- {jrdb_model-0.2.1 → jrdb_model-0.2.2}/src/jrdb_model.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jrdb-model
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: ORM for JRDB
|
|
5
5
|
Author-email: requrd <requrd1989@gmail.com>
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/astroripple/horseview/issues
|
|
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Dist: flask-migrate>=4.1.0
|
|
14
|
+
Requires-Dist: pymysql>=1.1.1
|
|
14
15
|
Dynamic: license-file
|
|
15
16
|
|
|
16
17
|
# JRDB-Model
|
|
@@ -6,10 +6,10 @@ classifiers = [
|
|
|
6
6
|
"Operating System :: OS Independent",
|
|
7
7
|
]
|
|
8
8
|
name = "jrdb-model"
|
|
9
|
-
version = "0.2.
|
|
9
|
+
version = "0.2.2"
|
|
10
10
|
description = "ORM for JRDB"
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
dependencies = ["flask-migrate>=4.1.0"]
|
|
12
|
+
dependencies = ["flask-migrate>=4.1.0", "pymysql>=1.1.1"]
|
|
13
13
|
|
|
14
14
|
[project.urls]
|
|
15
15
|
"Bug Tracker" = "https://github.com/astroripple/horseview/issues"
|
|
@@ -20,7 +20,7 @@ requires = ["setuptools>=42"]
|
|
|
20
20
|
build-backend = "setuptools.build_meta"
|
|
21
21
|
|
|
22
22
|
[tool.uv]
|
|
23
|
-
dev-dependencies = ["ruff>=0.11.10"]
|
|
23
|
+
dev-dependencies = ["mypy>=1.15.0", "pytest>=8.3.5", "ruff>=0.11.10"]
|
|
24
24
|
[tool.ruff.lint]
|
|
25
25
|
select = ["RUF", "I", "SIM", "FURB", "PIE", "PERF", "C4", "B", "PL", "D", "S"]
|
|
26
26
|
|
|
@@ -29,3 +29,6 @@ select = ["RUF", "I", "SIM", "FURB", "PIE", "PERF", "C4", "B", "PL", "D", "S"]
|
|
|
29
29
|
|
|
30
30
|
[tool.ruff.format]
|
|
31
31
|
docstring-code-format = true
|
|
32
|
+
[tool.pytest.ini_options]
|
|
33
|
+
pythonpath = ["src"]
|
|
34
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey
|
|
4
|
+
from sqlalchemy.orm import Mapped, backref, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
from ..sessioncontroll import db
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BangumiData(db.Model):
|
|
10
|
+
__tablename__ = "bangumi"
|
|
11
|
+
racekey: Mapped[str] = mapped_column(primary_key=True)
|
|
12
|
+
# 親に対して
|
|
13
|
+
kaisaikey: Mapped[str] = mapped_column(ForeignKey("kaisai.kaisaikey"))
|
|
14
|
+
# 子に対して
|
|
15
|
+
racehorses: Mapped[List["RacehorseData"]] = relationship(
|
|
16
|
+
"RacehorseData", backref=backref("bangumi"), innerjoin=True
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
# 1:1
|
|
20
|
+
returninfo: Mapped[List["ReturninfoData"]] = relationship(
|
|
21
|
+
"ReturninfoData", uselist=False, backref=backref("bangumi")
|
|
22
|
+
)
|
|
23
|
+
umaren_odds: Mapped[List["UmarenOddsData"]] = relationship(
|
|
24
|
+
"UmarenOddsData", uselist=False, backref=backref("bangumi")
|
|
25
|
+
)
|
|
26
|
+
wide_odds: Mapped[List["WideOddsData"]] = relationship(
|
|
27
|
+
"WideOddsData", uselist=False, backref=backref("bangumi")
|
|
28
|
+
)
|
|
29
|
+
wakuren_odds: Mapped[List["WakurenOddsData"]] = relationship(
|
|
30
|
+
"WakurenOddsData", uselist=False, backref=backref("bangumi")
|
|
31
|
+
)
|
|
32
|
+
predict_race: Mapped[List["PredictRaceData"]] = relationship(
|
|
33
|
+
"PredictRaceData", uselist=False, backref=backref("bangumi")
|
|
34
|
+
)
|
|
35
|
+
ymd: Mapped[str] = mapped_column()
|
|
36
|
+
start_time: Mapped[str] = mapped_column()
|
|
37
|
+
distance: Mapped[int] = mapped_column()
|
|
38
|
+
tdscode: Mapped[int] = mapped_column()
|
|
39
|
+
right_left: Mapped[int] = mapped_column()
|
|
40
|
+
in_out: Mapped[int] = mapped_column()
|
|
41
|
+
shubetsu: Mapped[int] = mapped_column()
|
|
42
|
+
joken: Mapped[str] = mapped_column()
|
|
43
|
+
kigo: Mapped[int] = mapped_column()
|
|
44
|
+
horse_kind_joken: Mapped[int] = mapped_column()
|
|
45
|
+
horse_sex_joken: Mapped[int] = mapped_column()
|
|
46
|
+
inter_race_joken: Mapped[int] = mapped_column()
|
|
47
|
+
juryo: Mapped[int] = mapped_column()
|
|
48
|
+
grade: Mapped[int] = mapped_column()
|
|
49
|
+
race_name: Mapped[str] = mapped_column()
|
|
50
|
+
kai: Mapped[str] = mapped_column()
|
|
51
|
+
num_of_all_horse: Mapped[int] = mapped_column()
|
|
52
|
+
course: Mapped[int] = mapped_column()
|
|
53
|
+
kaisai_kbn: Mapped[int] = mapped_column()
|
|
54
|
+
race_name_short: Mapped[str] = mapped_column()
|
|
55
|
+
race_name_9char: Mapped[str] = mapped_column()
|
|
56
|
+
data_kbn: Mapped[int] = mapped_column()
|
|
57
|
+
money1st: Mapped[int] = mapped_column()
|
|
58
|
+
money2nd: Mapped[int] = mapped_column()
|
|
59
|
+
money3rd: Mapped[int] = mapped_column()
|
|
60
|
+
money4th: Mapped[int] = mapped_column()
|
|
61
|
+
money5th: Mapped[int] = mapped_column()
|
|
62
|
+
sannyu_money1st: Mapped[int] = mapped_column()
|
|
63
|
+
sannyu_money2nd: Mapped[int] = mapped_column()
|
|
64
|
+
sellflg_tansho: Mapped[int] = mapped_column()
|
|
65
|
+
sellflg_fukusho: Mapped[int] = mapped_column()
|
|
66
|
+
sellflg_wakuren: Mapped[int] = mapped_column()
|
|
67
|
+
sellflg_umaren: Mapped[int] = mapped_column()
|
|
68
|
+
sellflg_umatan: Mapped[int] = mapped_column()
|
|
69
|
+
sellflg_wide: Mapped[int] = mapped_column()
|
|
70
|
+
sellflg_sanrenpuku: Mapped[int] = mapped_column()
|
|
71
|
+
sellflg_sanrentan: Mapped[int] = mapped_column()
|
|
72
|
+
yobi: Mapped[int] = mapped_column()
|
|
73
|
+
win5flg: Mapped[int] = mapped_column()
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""計算済みスコア."""
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey
|
|
4
|
+
from sqlalchemy.orm import Mapped, mapped_column
|
|
5
|
+
|
|
6
|
+
from ..sessioncontroll import db
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CalculatedScoreData(db.Model):
|
|
10
|
+
"""計算済みスコア.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
db (_type_): _description_
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
__tablename__ = "calculated_score"
|
|
18
|
+
racehorsekey: Mapped[str] = mapped_column(
|
|
19
|
+
ForeignKey("racehorse.racehorsekey"), primary_key=True
|
|
20
|
+
)
|
|
21
|
+
waku_win_rate: Mapped[float] = mapped_column()
|
|
22
|
+
waku_rentai_rate: Mapped[float] = mapped_column()
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""開催データ定義."""
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from sqlalchemy.orm import Mapped, backref, mapped_column, relationship
|
|
6
|
+
|
|
7
|
+
from ..sessioncontroll import db
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KaisaiData(db.Model):
|
|
11
|
+
"""開催データ."""
|
|
12
|
+
|
|
13
|
+
__tablename__ = "kaisai"
|
|
14
|
+
kaisaikey: Mapped[int] = mapped_column(primary_key=True)
|
|
15
|
+
# 子に対して
|
|
16
|
+
races: Mapped[List["BangumiData"]] = relationship(
|
|
17
|
+
"BangumiData", backref=backref("kaisai"), innerjoin=True
|
|
18
|
+
)
|
|
19
|
+
ymd: Mapped[int] = mapped_column()
|
|
20
|
+
kaisai_kbn: Mapped[int] = mapped_column()
|
|
21
|
+
day_of_week: Mapped[str] = mapped_column()
|
|
22
|
+
course_name: Mapped[str] = mapped_column()
|
|
23
|
+
tenko: Mapped[int] = mapped_column()
|
|
24
|
+
turf_baba: Mapped[int] = mapped_column()
|
|
25
|
+
turf_baba_abst: Mapped[int] = mapped_column()
|
|
26
|
+
turf_baba_detail: Mapped[int] = mapped_column()
|
|
27
|
+
turf_baba_in: Mapped[int] = mapped_column()
|
|
28
|
+
turf_baba_center: Mapped[int] = mapped_column()
|
|
29
|
+
turf_baba_out: Mapped[int] = mapped_column()
|
|
30
|
+
turf_baba_sa: Mapped[int] = mapped_column()
|
|
31
|
+
turf_baba_straight_saiuchi: Mapped[int] = mapped_column()
|
|
32
|
+
turf_baba_straight_in: Mapped[int] = mapped_column()
|
|
33
|
+
turf_baba_straight_center: Mapped[int] = mapped_column()
|
|
34
|
+
turf_baba_straight_out: Mapped[int] = mapped_column()
|
|
35
|
+
turf_baba_straight_oosoto: Mapped[int] = mapped_column()
|
|
36
|
+
dart_baba: Mapped[int] = mapped_column()
|
|
37
|
+
dart_baba_abst: Mapped[int] = mapped_column()
|
|
38
|
+
dart_baba_detail: Mapped[int] = mapped_column()
|
|
39
|
+
dart_baba_in: Mapped[int] = mapped_column()
|
|
40
|
+
dart_baba_center: Mapped[int] = mapped_column()
|
|
41
|
+
dart_baba_out: Mapped[int] = mapped_column()
|
|
42
|
+
dart_baba_sa: Mapped[int] = mapped_column()
|
|
43
|
+
data_kbn: Mapped[int] = mapped_column()
|
|
44
|
+
renzoku_day: Mapped[int] = mapped_column()
|
|
45
|
+
turf_kind: Mapped[int] = mapped_column()
|
|
46
|
+
turf_length: Mapped[int] = mapped_column()
|
|
47
|
+
tennatsu: Mapped[int] = mapped_column()
|
|
48
|
+
stopfreeze: Mapped[int] = mapped_column()
|
|
49
|
+
precipitation: Mapped[int] = mapped_column()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from sqlalchemy import ForeignKey
|
|
2
|
+
from sqlalchemy.orm import Mapped, mapped_column
|
|
3
|
+
|
|
4
|
+
from ..sessioncontroll import db
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PredictData(db.Model):
|
|
8
|
+
"""予想データ.
|
|
9
|
+
|
|
10
|
+
Args:
|
|
11
|
+
db (_type_): _description_
|
|
12
|
+
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
__tablename__ = "predict"
|
|
16
|
+
racehorsekey: Mapped[str] = mapped_column(
|
|
17
|
+
ForeignKey("racehorse.racehorsekey"), primary_key=True
|
|
18
|
+
)
|
|
19
|
+
pp_icchaku: Mapped[float] = mapped_column()
|
|
20
|
+
pp_nichaku: Mapped[float] = mapped_column()
|
|
21
|
+
pp_sanchaku: Mapped[float] = mapped_column()
|
|
22
|
+
rentai_rate: Mapped[float] = mapped_column()
|
|
23
|
+
fukusho_rate: Mapped[float] = mapped_column()
|
|
24
|
+
tansho_odds: Mapped[float] = mapped_column()
|
|
25
|
+
fukusho_odds: Mapped[float] = mapped_column()
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""予想レースデータ."""
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON, ForeignKey
|
|
4
|
+
from sqlalchemy.orm import Mapped, mapped_column
|
|
5
|
+
|
|
6
|
+
from ..sessioncontroll import db
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PredictRaceData(db.Model):
|
|
10
|
+
"""予想レースデータ.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
db (_type_): _description_
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
__tablename__ = "predict_race"
|
|
18
|
+
racekey: Mapped[str] = mapped_column(
|
|
19
|
+
ForeignKey("bangumi.racekey"), primary_key=True
|
|
20
|
+
)
|
|
21
|
+
umaren: Mapped[str] = mapped_column(type_=JSON)
|
|
22
|
+
wide: Mapped[str] = mapped_column(type_=JSON)
|
|
23
|
+
wakuren: Mapped[str] = mapped_column(type_=JSON)
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"""競走馬データ."""
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from sqlalchemy import ForeignKey
|
|
6
|
+
from sqlalchemy.orm import Mapped, backref, mapped_column, relationship
|
|
7
|
+
|
|
8
|
+
from ..sessioncontroll import db
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RacehorseData(db.Model):
|
|
12
|
+
"""競走馬データ.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
db (_type_): _description_
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
__tablename__ = "racehorse"
|
|
20
|
+
__table_args__ = {"mariadb_row_format": "DYNAMIC"}
|
|
21
|
+
racehorsekey: Mapped[str] = mapped_column(primary_key=True)
|
|
22
|
+
# 親に対して
|
|
23
|
+
racekey: Mapped[str] = mapped_column(ForeignKey("bangumi.racekey"))
|
|
24
|
+
# 1:1
|
|
25
|
+
trainanalysis: Mapped[List["TrainAnalysisData"]] = relationship(
|
|
26
|
+
"TrainAnalysisData", uselist=False, backref=backref("racehorse"), innerjoin=True
|
|
27
|
+
)
|
|
28
|
+
trainoikiri: Mapped[List["TrainOikiriData"]] = relationship(
|
|
29
|
+
"TrainOikiriData", uselist=False, backref=backref("racehorse"), innerjoin=True
|
|
30
|
+
)
|
|
31
|
+
horse_base: Mapped[List["HorsebaseData"]] = relationship(
|
|
32
|
+
"HorsebaseData", uselist=False, backref=backref("racehorse"), innerjoin=True
|
|
33
|
+
)
|
|
34
|
+
result: Mapped[List["SeisekiData"]] = relationship(
|
|
35
|
+
"SeisekiData", uselist=False, backref=backref("racehorse"), innerjoin=False
|
|
36
|
+
)
|
|
37
|
+
predict: Mapped[List["PredictData"]] = relationship(
|
|
38
|
+
"PredictData", uselist=False, backref=backref("racehorse"), innerjoin=False
|
|
39
|
+
)
|
|
40
|
+
calculated_score: Mapped[List["CalculatedScoreData"]] = relationship(
|
|
41
|
+
"CalculatedScoreData",
|
|
42
|
+
uselist=False,
|
|
43
|
+
backref=backref("racehorse"),
|
|
44
|
+
innerjoin=False,
|
|
45
|
+
)
|
|
46
|
+
bacode: Mapped[int] = mapped_column()
|
|
47
|
+
year: Mapped[int] = mapped_column()
|
|
48
|
+
kai: Mapped[int] = mapped_column()
|
|
49
|
+
day: Mapped[str] = mapped_column()
|
|
50
|
+
race: Mapped[int] = mapped_column()
|
|
51
|
+
num: Mapped[int] = mapped_column()
|
|
52
|
+
blood: Mapped[int] = mapped_column(ForeignKey("horsebase.blood"))
|
|
53
|
+
horse: Mapped[str] = mapped_column()
|
|
54
|
+
idm: Mapped[float] = mapped_column()
|
|
55
|
+
jockey_score: Mapped[float] = mapped_column()
|
|
56
|
+
info_score: Mapped[float] = mapped_column()
|
|
57
|
+
yobi1: Mapped[str] = mapped_column()
|
|
58
|
+
yobi2: Mapped[str] = mapped_column()
|
|
59
|
+
yobi3: Mapped[str] = mapped_column()
|
|
60
|
+
sogo_score: Mapped[float] = mapped_column()
|
|
61
|
+
leg_type: Mapped[int] = mapped_column()
|
|
62
|
+
distance_adjust: Mapped[int] = mapped_column()
|
|
63
|
+
up_degree: Mapped[int] = mapped_column()
|
|
64
|
+
routin: Mapped[int] = mapped_column()
|
|
65
|
+
cri_odds: Mapped[float] = mapped_column()
|
|
66
|
+
cri_popular_order: Mapped[int] = mapped_column()
|
|
67
|
+
cri_fukusho_odds: Mapped[float] = mapped_column()
|
|
68
|
+
cri_fukusho_popluar_order: Mapped[int] = mapped_column()
|
|
69
|
+
specific_info_1: Mapped[int] = mapped_column()
|
|
70
|
+
specific_info_2: Mapped[int] = mapped_column()
|
|
71
|
+
specific_info_3: Mapped[int] = mapped_column()
|
|
72
|
+
specific_info_4: Mapped[int] = mapped_column()
|
|
73
|
+
specific_info_5: Mapped[int] = mapped_column()
|
|
74
|
+
sogo_info_1: Mapped[int] = mapped_column()
|
|
75
|
+
sogo_info_2: Mapped[int] = mapped_column()
|
|
76
|
+
sogo_info_3: Mapped[int] = mapped_column()
|
|
77
|
+
sogo_info_4: Mapped[int] = mapped_column()
|
|
78
|
+
sogo_info_5: Mapped[int] = mapped_column()
|
|
79
|
+
pop_score: Mapped[float] = mapped_column()
|
|
80
|
+
train_score: Mapped[float] = mapped_column()
|
|
81
|
+
trainer_score: Mapped[float] = mapped_column()
|
|
82
|
+
train_code: Mapped[int] = mapped_column()
|
|
83
|
+
trainer_hyoka_code: Mapped[int] = mapped_column()
|
|
84
|
+
jockey_rate_rentai: Mapped[float] = mapped_column()
|
|
85
|
+
gekiso_score: Mapped[float] = mapped_column()
|
|
86
|
+
hidume_code: Mapped[int] = mapped_column()
|
|
87
|
+
hidume_shape: Mapped[int] = mapped_column()
|
|
88
|
+
hidume_size: Mapped[int] = mapped_column()
|
|
89
|
+
omotekisei_code: Mapped[int] = mapped_column()
|
|
90
|
+
class_code: Mapped[int] = mapped_column()
|
|
91
|
+
yobi4: Mapped[str] = mapped_column()
|
|
92
|
+
brinkers: Mapped[str] = mapped_column()
|
|
93
|
+
jockey_name: Mapped[str] = mapped_column()
|
|
94
|
+
kinryo: Mapped[int] = mapped_column()
|
|
95
|
+
minarai: Mapped[int] = mapped_column()
|
|
96
|
+
trainer_name: Mapped[str] = mapped_column()
|
|
97
|
+
trainer_shozoku: Mapped[str] = mapped_column()
|
|
98
|
+
zenso_seiseki_key_1: Mapped[str] = mapped_column()
|
|
99
|
+
zenso_seiseki_key_2: Mapped[str] = mapped_column()
|
|
100
|
+
zenso_seiseki_key_3: Mapped[str] = mapped_column()
|
|
101
|
+
zenso_seiseki_key_4: Mapped[str] = mapped_column()
|
|
102
|
+
zenso_seiseki_key_5: Mapped[str] = mapped_column()
|
|
103
|
+
zenso_racekey_1: Mapped[str] = mapped_column()
|
|
104
|
+
zenso_racekey_2: Mapped[str] = mapped_column()
|
|
105
|
+
zenso_racekey_3: Mapped[str] = mapped_column()
|
|
106
|
+
zenso_racekey_4: Mapped[str] = mapped_column()
|
|
107
|
+
zenso_racekey_5: Mapped[str] = mapped_column()
|
|
108
|
+
waku: Mapped[int] = mapped_column()
|
|
109
|
+
yobi5: Mapped[str] = mapped_column()
|
|
110
|
+
sogo_shirushi: Mapped[int] = mapped_column()
|
|
111
|
+
idm_shiruishi: Mapped[int] = mapped_column()
|
|
112
|
+
info_shirushi: Mapped[int] = mapped_column()
|
|
113
|
+
jockey_shirushi: Mapped[int] = mapped_column()
|
|
114
|
+
trainer_shirushi: Mapped[int] = mapped_column()
|
|
115
|
+
train_shirushi: Mapped[int] = mapped_column()
|
|
116
|
+
gekiso_shirushi: Mapped[int] = mapped_column()
|
|
117
|
+
turf_adjust_code: Mapped[int] = mapped_column()
|
|
118
|
+
dart_adjust_code: Mapped[int] = mapped_column()
|
|
119
|
+
jockey_code: Mapped[int] = mapped_column()
|
|
120
|
+
trainer_code: Mapped[int] = mapped_column()
|
|
121
|
+
yobi6: Mapped[str] = mapped_column()
|
|
122
|
+
kakutoku_money: Mapped[int] = mapped_column()
|
|
123
|
+
shukaku_money: Mapped[int] = mapped_column()
|
|
124
|
+
joken: Mapped[int] = mapped_column()
|
|
125
|
+
ten_score: Mapped[float] = mapped_column()
|
|
126
|
+
pace_score: Mapped[float] = mapped_column()
|
|
127
|
+
up_score: Mapped[float] = mapped_column()
|
|
128
|
+
position_score: Mapped[float] = mapped_column()
|
|
129
|
+
pace_predict: Mapped[str] = mapped_column()
|
|
130
|
+
dochu_order: Mapped[int] = mapped_column()
|
|
131
|
+
dochu_sa: Mapped[int] = mapped_column()
|
|
132
|
+
dochu_in_out: Mapped[int] = mapped_column()
|
|
133
|
+
last_order: Mapped[int] = mapped_column()
|
|
134
|
+
last_sa: Mapped[int] = mapped_column()
|
|
135
|
+
last_in_out: Mapped[int] = mapped_column()
|
|
136
|
+
order: Mapped[int] = mapped_column()
|
|
137
|
+
sa: Mapped[int] = mapped_column()
|
|
138
|
+
in_out: Mapped[int] = mapped_column()
|
|
139
|
+
tenkai: Mapped[str] = mapped_column()
|
|
140
|
+
distance_adjust2: Mapped[int] = mapped_column()
|
|
141
|
+
commit_weight: Mapped[int] = mapped_column()
|
|
142
|
+
commit_weight_increase: Mapped[int] = mapped_column()
|
|
143
|
+
torikeshi: Mapped[int] = mapped_column()
|
|
144
|
+
sex: Mapped[int] = mapped_column()
|
|
145
|
+
owner_name: Mapped[str] = mapped_column()
|
|
146
|
+
banushikai_code: Mapped[int] = mapped_column()
|
|
147
|
+
umakigo_code: Mapped[int] = mapped_column()
|
|
148
|
+
gekiso_order: Mapped[int] = mapped_column()
|
|
149
|
+
ls_score_order: Mapped[int] = mapped_column()
|
|
150
|
+
ten_score_order: Mapped[int] = mapped_column()
|
|
151
|
+
pace_score_order: Mapped[int] = mapped_column()
|
|
152
|
+
up_score_order: Mapped[int] = mapped_column()
|
|
153
|
+
position_score_order: Mapped[int] = mapped_column()
|
|
154
|
+
expect_jokey_win_rate: Mapped[float] = mapped_column()
|
|
155
|
+
expect_jokey_rentai_rate: Mapped[float] = mapped_column()
|
|
156
|
+
yuso: Mapped[str] = mapped_column()
|
|
157
|
+
soho: Mapped[int] = mapped_column()
|
|
158
|
+
taikei_data: Mapped[str] = mapped_column()
|
|
159
|
+
taikei: Mapped[int] = mapped_column()
|
|
160
|
+
senaka: Mapped[int] = mapped_column()
|
|
161
|
+
do: Mapped[int] = mapped_column()
|
|
162
|
+
siri: Mapped[int] = mapped_column()
|
|
163
|
+
tomo: Mapped[int] = mapped_column()
|
|
164
|
+
harabukuro: Mapped[int] = mapped_column()
|
|
165
|
+
head: Mapped[int] = mapped_column()
|
|
166
|
+
neck: Mapped[int] = mapped_column()
|
|
167
|
+
breast: Mapped[int] = mapped_column()
|
|
168
|
+
shoulder: Mapped[int] = mapped_column()
|
|
169
|
+
zencho: Mapped[int] = mapped_column()
|
|
170
|
+
kocho: Mapped[int] = mapped_column()
|
|
171
|
+
maehaba: Mapped[int] = mapped_column()
|
|
172
|
+
ushirohaba: Mapped[int] = mapped_column()
|
|
173
|
+
maetsunagi: Mapped[int] = mapped_column()
|
|
174
|
+
ushirotsunagi: Mapped[int] = mapped_column()
|
|
175
|
+
tail: Mapped[int] = mapped_column()
|
|
176
|
+
furikata: Mapped[int] = mapped_column()
|
|
177
|
+
taikei_sogo1: Mapped[int] = mapped_column()
|
|
178
|
+
taikei_sogo2: Mapped[int] = mapped_column()
|
|
179
|
+
taikei_sogo3: Mapped[int] = mapped_column()
|
|
180
|
+
umatokki1: Mapped[int] = mapped_column()
|
|
181
|
+
umatokki2: Mapped[int] = mapped_column()
|
|
182
|
+
umatokki3: Mapped[int] = mapped_column()
|
|
183
|
+
horse_start_score: Mapped[float] = mapped_column()
|
|
184
|
+
horse_latestart_rate: Mapped[float] = mapped_column()
|
|
185
|
+
sanko_zenso: Mapped[int] = mapped_column()
|
|
186
|
+
sanko_zenso_jockey_code: Mapped[str] = mapped_column()
|
|
187
|
+
mambaken_score: Mapped[float] = mapped_column()
|
|
188
|
+
mambaken_shirushi: Mapped[int] = mapped_column()
|
|
189
|
+
kokyu_flg: Mapped[int] = mapped_column()
|
|
190
|
+
gekiso_type: Mapped[str] = mapped_column()
|
|
191
|
+
rest_reason_code: Mapped[int] = mapped_column()
|
|
192
|
+
flg: Mapped[str] = mapped_column()
|
|
193
|
+
turf_dart_steeple_flg: Mapped[int] = mapped_column()
|
|
194
|
+
distance_flg: Mapped[int] = mapped_column()
|
|
195
|
+
class_flg: Mapped[int] = mapped_column()
|
|
196
|
+
tenkyu_flg: Mapped[int] = mapped_column()
|
|
197
|
+
kyosei_flg: Mapped[int] = mapped_column()
|
|
198
|
+
norikae_flg: Mapped[int] = mapped_column()
|
|
199
|
+
runtimes_first_train: Mapped[int] = mapped_column()
|
|
200
|
+
date_first_train: Mapped[int] = mapped_column()
|
|
201
|
+
days_after_first_train: Mapped[int] = mapped_column()
|
|
202
|
+
hobokusaki: Mapped[str] = mapped_column()
|
|
203
|
+
hobokusaki_rank: Mapped[str] = mapped_column()
|
|
204
|
+
trainer_rank: Mapped[int] = mapped_column()
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"""払い戻しデータ."""
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey
|
|
4
|
+
from sqlalchemy.orm import Mapped, mapped_column
|
|
5
|
+
|
|
6
|
+
from ..sessioncontroll import db
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ReturninfoData(db.Model):
|
|
10
|
+
"""払戻金データ.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
db (_type_): _description_
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
__tablename__ = "returninfo"
|
|
18
|
+
racekey: Mapped[str] = mapped_column(
|
|
19
|
+
ForeignKey("bangumi.racekey"), primary_key=True
|
|
20
|
+
)
|
|
21
|
+
win1_num: Mapped[int] = mapped_column()
|
|
22
|
+
win1_ret: Mapped[int] = mapped_column()
|
|
23
|
+
win2_num: Mapped[int] = mapped_column()
|
|
24
|
+
win2_ret: Mapped[int] = mapped_column()
|
|
25
|
+
win3_num: Mapped[int] = mapped_column()
|
|
26
|
+
win3_ret: Mapped[int] = mapped_column()
|
|
27
|
+
place1_num: Mapped[int] = mapped_column()
|
|
28
|
+
place1_ret: Mapped[int] = mapped_column()
|
|
29
|
+
place2_num: Mapped[int] = mapped_column()
|
|
30
|
+
place2_ret: Mapped[int] = mapped_column()
|
|
31
|
+
place3_num: Mapped[int] = mapped_column()
|
|
32
|
+
place3_ret: Mapped[int] = mapped_column()
|
|
33
|
+
place4_num: Mapped[int] = mapped_column()
|
|
34
|
+
place4_ret: Mapped[int] = mapped_column()
|
|
35
|
+
place5_num: Mapped[int] = mapped_column()
|
|
36
|
+
place5_ret: Mapped[int] = mapped_column()
|
|
37
|
+
wakuren1_num1: Mapped[int] = mapped_column()
|
|
38
|
+
wakuren1_num2: Mapped[int] = mapped_column()
|
|
39
|
+
wakuren1_ret: Mapped[int] = mapped_column()
|
|
40
|
+
wakuren2_num1: Mapped[int] = mapped_column()
|
|
41
|
+
wakuren2_num2: Mapped[int] = mapped_column()
|
|
42
|
+
wakuren2_ret: Mapped[int] = mapped_column()
|
|
43
|
+
wakuren3_num1: Mapped[int] = mapped_column()
|
|
44
|
+
wakuren3_num2: Mapped[int] = mapped_column()
|
|
45
|
+
wakuren3_ret: Mapped[int] = mapped_column()
|
|
46
|
+
umaren1_num1: Mapped[int] = mapped_column()
|
|
47
|
+
umaren1_num2: Mapped[int] = mapped_column()
|
|
48
|
+
umaren1_ret: Mapped[int] = mapped_column()
|
|
49
|
+
umaren2_num1: Mapped[int] = mapped_column()
|
|
50
|
+
umaren2_num2: Mapped[int] = mapped_column()
|
|
51
|
+
umaren2_ret: Mapped[int] = mapped_column()
|
|
52
|
+
umaren3_num1: Mapped[int] = mapped_column()
|
|
53
|
+
umaren3_num2: Mapped[int] = mapped_column()
|
|
54
|
+
umaren3_ret: Mapped[int] = mapped_column()
|
|
55
|
+
wide1_num1: Mapped[int] = mapped_column()
|
|
56
|
+
wide1_num2: Mapped[int] = mapped_column()
|
|
57
|
+
wide1_ret: Mapped[int] = mapped_column()
|
|
58
|
+
wide2_num1: Mapped[int] = mapped_column()
|
|
59
|
+
wide2_num2: Mapped[int] = mapped_column()
|
|
60
|
+
wide2_ret: Mapped[int] = mapped_column()
|
|
61
|
+
wide3_num1: Mapped[int] = mapped_column()
|
|
62
|
+
wide3_num2: Mapped[int] = mapped_column()
|
|
63
|
+
wide3_ret: Mapped[int] = mapped_column()
|
|
64
|
+
wide4_num1: Mapped[int] = mapped_column()
|
|
65
|
+
wide4_num2: Mapped[int] = mapped_column()
|
|
66
|
+
wide4_ret: Mapped[int] = mapped_column()
|
|
67
|
+
wide5_num1: Mapped[int] = mapped_column()
|
|
68
|
+
wide5_num2: Mapped[int] = mapped_column()
|
|
69
|
+
wide5_ret: Mapped[int] = mapped_column()
|
|
70
|
+
wide6_num1: Mapped[int] = mapped_column()
|
|
71
|
+
wide6_num2: Mapped[int] = mapped_column()
|
|
72
|
+
wide6_ret: Mapped[int] = mapped_column()
|
|
73
|
+
wide7_num1: Mapped[int] = mapped_column()
|
|
74
|
+
wide7_num2: Mapped[int] = mapped_column()
|
|
75
|
+
wide7_ret: Mapped[int] = mapped_column()
|
|
76
|
+
umatan1_num1: Mapped[int] = mapped_column()
|
|
77
|
+
umatan1_num2: Mapped[int] = mapped_column()
|
|
78
|
+
umatan1_ret: Mapped[int] = mapped_column()
|
|
79
|
+
umatan2_num1: Mapped[int] = mapped_column()
|
|
80
|
+
umatan2_num2: Mapped[int] = mapped_column()
|
|
81
|
+
umatan2_ret: Mapped[int] = mapped_column()
|
|
82
|
+
umatan3_num1: Mapped[int] = mapped_column()
|
|
83
|
+
umatan3_num2: Mapped[int] = mapped_column()
|
|
84
|
+
umatan3_ret: Mapped[int] = mapped_column()
|
|
85
|
+
umatan4_num1: Mapped[int] = mapped_column()
|
|
86
|
+
umatan4_num2: Mapped[int] = mapped_column()
|
|
87
|
+
umatan4_ret: Mapped[int] = mapped_column()
|
|
88
|
+
umatan5_num1: Mapped[int] = mapped_column()
|
|
89
|
+
umatan5_num2: Mapped[int] = mapped_column()
|
|
90
|
+
umatan5_ret: Mapped[int] = mapped_column()
|
|
91
|
+
umatan6_num1: Mapped[int] = mapped_column()
|
|
92
|
+
umatan6_num2: Mapped[int] = mapped_column()
|
|
93
|
+
umatan6_ret: Mapped[int] = mapped_column()
|
|
94
|
+
sanrenpuku1_num1: Mapped[int] = mapped_column()
|
|
95
|
+
sanrenpuku1_num2: Mapped[int] = mapped_column()
|
|
96
|
+
sanrenpuku1_num3: Mapped[int] = mapped_column()
|
|
97
|
+
sanrenpuku1_ret: Mapped[int] = mapped_column()
|
|
98
|
+
sanrenpuku2_num1: Mapped[int] = mapped_column()
|
|
99
|
+
sanrenpuku2_num2: Mapped[int] = mapped_column()
|
|
100
|
+
sanrenpuku2_num3: Mapped[int] = mapped_column()
|
|
101
|
+
sanrenpuku2_ret: Mapped[int] = mapped_column()
|
|
102
|
+
sanrenpuku3_num1: Mapped[int] = mapped_column()
|
|
103
|
+
sanrenpuku3_num2: Mapped[int] = mapped_column()
|
|
104
|
+
sanrenpuku3_num3: Mapped[int] = mapped_column()
|
|
105
|
+
sanrenpuku3_ret: Mapped[int] = mapped_column()
|
|
106
|
+
sanrentan1_num1: Mapped[int] = mapped_column()
|
|
107
|
+
sanrentan1_num2: Mapped[int] = mapped_column()
|
|
108
|
+
sanrentan1_num3: Mapped[int] = mapped_column()
|
|
109
|
+
sanrentan1_ret: Mapped[int] = mapped_column()
|
|
110
|
+
sanrentan2_num1: Mapped[int] = mapped_column()
|
|
111
|
+
sanrentan2_num2: Mapped[int] = mapped_column()
|
|
112
|
+
sanrentan2_num3: Mapped[int] = mapped_column()
|
|
113
|
+
sanrentan2_ret: Mapped[int] = mapped_column()
|
|
114
|
+
sanrentan3_num1: Mapped[int] = mapped_column()
|
|
115
|
+
sanrentan3_num2: Mapped[int] = mapped_column()
|
|
116
|
+
sanrentan3_num3: Mapped[int] = mapped_column()
|
|
117
|
+
sanrentan3_ret: Mapped[int] = mapped_column()
|
|
118
|
+
sanrentan4_num1: Mapped[int] = mapped_column()
|
|
119
|
+
sanrentan4_num2: Mapped[int] = mapped_column()
|
|
120
|
+
sanrentan4_num3: Mapped[int] = mapped_column()
|
|
121
|
+
sanrentan4_ret: Mapped[int] = mapped_column()
|
|
122
|
+
sanrentan5_num1: Mapped[int] = mapped_column()
|
|
123
|
+
sanrentan5_num2: Mapped[int] = mapped_column()
|
|
124
|
+
sanrentan5_num3: Mapped[int] = mapped_column()
|
|
125
|
+
sanrentan5_ret: Mapped[int] = mapped_column()
|
|
126
|
+
sanrentan6_num1: Mapped[int] = mapped_column()
|
|
127
|
+
sanrentan6_num2: Mapped[int] = mapped_column()
|
|
128
|
+
sanrentan6_num3: Mapped[int] = mapped_column()
|
|
129
|
+
sanrentan6_ret: Mapped[int] = mapped_column()
|