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

@@ -24,6 +24,7 @@ class CreditTransaction(AccountBaseModel):
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
app_label = 'billing'
db_table = 'igny8_credit_transactions'
ordering = ['-created_at']
indexes = [
@@ -61,6 +62,7 @@ class CreditUsageLog(AccountBaseModel):
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
app_label = 'billing'
db_table = 'igny8_credit_usage_logs'
ordering = ['-created_at']
indexes = [