This commit is contained in:
IGNY8 VPS (Salman)
2025-12-08 18:22:10 +00:00
parent 33ad6768ec
commit 9f85ce4f52
11 changed files with 774 additions and 198 deletions

View File

@@ -230,6 +230,14 @@ class Subscription(models.Model):
]
account = models.OneToOneField('igny8_core_auth.Account', on_delete=models.CASCADE, related_name='subscription', db_column='tenant_id')
plan = models.ForeignKey(
'igny8_core_auth.Plan',
on_delete=models.PROTECT,
related_name='subscriptions',
null=True,
blank=True,
help_text='Plan for this subscription (historical tracking)'
)
stripe_subscription_id = models.CharField(
max_length=255,
blank=True,
@@ -286,9 +294,7 @@ class Site(SoftDeletableModel, AccountBaseModel):
'igny8_core_auth.Industry',
on_delete=models.PROTECT,
related_name='sites',
null=True,
blank=True,
help_text="Industry this site belongs to"
help_text="Industry this site belongs to (required)"
)
is_active = models.BooleanField(default=True, db_index=True)
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='active')