feat(db): add focus_energy to ChatStreams model
Adds a new `focus_energy` column to the `ChatStreams` table. This field will be used to track the user's focus level, defaulting to 1.0.
This commit is contained in:
@@ -53,6 +53,7 @@ class ChatStreams(Base):
|
|||||||
user_cardname = Column(Text, nullable=True)
|
user_cardname = Column(Text, nullable=True)
|
||||||
energy_value = Column(Float, nullable=True, default=5.0)
|
energy_value = Column(Float, nullable=True, default=5.0)
|
||||||
sleep_pressure = Column(Float, nullable=True, default=0.0)
|
sleep_pressure = Column(Float, nullable=True, default=0.0)
|
||||||
|
focus_energy = Column(Float, nullable=True, default=1.0)
|
||||||
|
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
Index("idx_chatstreams_stream_id", "stream_id"),
|
Index("idx_chatstreams_stream_id", "stream_id"),
|
||||||
|
|||||||
Reference in New Issue
Block a user