feat: per-task on/off switches on /sync page for staged rollout
Adds evo_mirror_enabled and vk_mirror_enabled flags to SyncConfig. Each of the three background tasks (Зеркало Эвотор / Зеркало ВК / Синхронизация) can now be enabled independently from the /sync page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,8 @@ class SyncConfig(Base):
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
user_id = Column(Integer, ForeignKey("users.id", ondelete="CASCADE"), nullable=False)
|
||||
is_enabled = Column(Boolean, nullable=False, default=False)
|
||||
evo_mirror_enabled = Column(Boolean, nullable=False, default=False)
|
||||
vk_mirror_enabled = Column(Boolean, nullable=False, default=False)
|
||||
confirmed_at = Column(DateTime, nullable=True)
|
||||
price_multiplier = Column(Numeric(10, 4), nullable=False, default=1.0)
|
||||
created_at = Column(DateTime, nullable=False, server_default=func.now())
|
||||
|
||||
Reference in New Issue
Block a user