"models.py_StockItem_추가_및_ImportError_수정"
This commit is contained in:
@@ -137,6 +137,19 @@ class StockStat(Base):
|
|||||||
aiScoreBuy: Mapped[int] = mapped_column(Integer, default=0)
|
aiScoreBuy: Mapped[int] = mapped_column(Integer, default=0)
|
||||||
aiScoreSell: Mapped[int] = mapped_column(Integer, default=0)
|
aiScoreSell: Mapped[int] = mapped_column(Integer, default=0)
|
||||||
|
|
||||||
|
|
||||||
|
class StockItem(Base):
|
||||||
|
__tablename__ = "stock_items"
|
||||||
|
|
||||||
|
code: Mapped[str] = mapped_column(String, primary_key=True)
|
||||||
|
name: Mapped[str] = mapped_column(String)
|
||||||
|
price: Mapped[float] = mapped_column(Float, default=0.0)
|
||||||
|
change: Mapped[float] = mapped_column(Float, default=0.0)
|
||||||
|
changePercent: Mapped[float] = mapped_column(Float, default=0.0)
|
||||||
|
market: Mapped[str] = mapped_column(String) # Domestic, Overseas
|
||||||
|
|
||||||
|
updated_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.now)
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# 4. Watchlist
|
# 4. Watchlist
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user