Add field definitions
This commit is contained in:
1 parent
b5eec810bd
commit
8daf641275
1 file changed
+12
-3
+12
-3
@@ -3,9 +3,18 @@
|
||||
|
||||
The structure of the Powerball database storage
|
||||
"""
|
||||
from sqlalchemy import Table, Column, Integer, String
|
||||
from sqlalchemy import DateTime, Column, Integer, String
|
||||
|
||||
from data.database import Base
|
||||
|
||||
class PB_Draw(Base):
|
||||
__tablename__ = 'pb_draws'
|
||||
class PowerballDraw(Base):
|
||||
__tablename__ = 'powerball_draws'
|
||||
|
||||
draw_date: DateTime = Column(DateTime, primary_key=True)
|
||||
white_ball1: int = Column(Integer)
|
||||
white_ball2: int = Column(Integer)
|
||||
white_ball3: int = Column(Integer)
|
||||
white_ball4: int = Column(Integer)
|
||||
white_ball5: int = Column(Integer)
|
||||
powerball: int = Column(Integer)
|
||||
power_play: str = Column(String)
|
||||
Reference in new issue
Block a user