Add automation module to settings and update app labels

- Registered the new AutomationConfig in the INSTALLED_APPS of settings.py.
- Set the app_label for AutomationRule and ScheduledTask models to 'automation' for better organization and clarity in the database schema.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-16 22:23:39 +00:00
parent 92f51859fe
commit 1c2c9354ba
8 changed files with 221 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ class AutomationRule(SiteSectorBaseModel):
updated_at = models.DateTimeField(auto_now=True)
class Meta:
app_label = 'automation'
db_table = 'igny8_automation_rules'
ordering = ['-created_at']
verbose_name = 'Automation Rule'
@@ -125,6 +126,7 @@ class ScheduledTask(AccountBaseModel):
updated_at = models.DateTimeField(auto_now=True)
class Meta:
app_label = 'automation'
db_table = 'igny8_scheduled_tasks'
ordering = ['-scheduled_at']
verbose_name = 'Scheduled Task'