Update app labels for billing, writer, and planner models; fix foreign key references in automation migrations

- Set app labels for CreditTransaction and CreditUsageLog models to 'billing'.
- Updated app labels for Tasks, Content, and Images models to 'writer'.
- Changed foreign key references in automation migrations from 'account' to 'tenant' for consistency.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-16 22:37:16 +00:00
parent 1c2c9354ba
commit 1134285a12
4 changed files with 13 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ class Clusters(SiteSectorBaseModel):
updated_at = models.DateTimeField(auto_now=True)
class Meta:
app_label = 'planner'
db_table = 'igny8_clusters'
ordering = ['name']
verbose_name = 'Cluster'
@@ -74,6 +75,7 @@ class Keywords(SiteSectorBaseModel):
updated_at = models.DateTimeField(auto_now=True)
class Meta:
app_label = 'planner'
db_table = 'igny8_keywords'
ordering = ['-created_at']
verbose_name = 'Keyword'
@@ -178,6 +180,7 @@ class ContentIdeas(SiteSectorBaseModel):
updated_at = models.DateTimeField(auto_now=True)
class Meta:
app_label = 'planner'
db_table = 'igny8_content_ideas'
ordering = ['-created_at']
verbose_name = 'Content Idea'