Very Good Web Server Work
This commit is contained in:
@@ -15,6 +15,12 @@ class Asset(Base):
|
||||
category = Column(String(50)) # 귀금속, 암호화폐, 환율 등
|
||||
created_at = Column(DateTime, default=datetime.utcnow)
|
||||
|
||||
# --- 새로 추가한 실시간 데이터 컬럼 ---
|
||||
current_price = Column(Float) # 실시간 현재가
|
||||
price_state = Column(String(20), default="stable") # up, down, stable
|
||||
last_updated = Column(DateTime) # 마지막 수집 시각
|
||||
# ------------------------------------
|
||||
|
||||
# 관계
|
||||
user_assets = relationship("UserAsset", back_populates="asset")
|
||||
price_history = relationship("PriceHistory", back_populates="asset")
|
||||
|
||||
Reference in New Issue
Block a user