dos updates
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Multi-Tenancy Architecture
|
||||
|
||||
**Last Verified:** December 25, 2025
|
||||
**Last Verified:** January 20, 2026
|
||||
**Version:** 1.8.4
|
||||
**Backend Path:** `backend/igny8_core/auth/models.py`
|
||||
|
||||
---
|
||||
@@ -33,28 +34,30 @@ Account (Tenant)
|
||||
|-------|------|---------|
|
||||
| name | CharField | Account/organization name |
|
||||
| is_active | Boolean | Enable/disable account |
|
||||
| credits | Decimal | Current credit balance |
|
||||
| credits | Decimal | Plan credits (reset on renewal) |
|
||||
| bonus_credits | Decimal | Purchased credits (never expire) |
|
||||
| account_timezone | CharField | IANA timezone (e.g., America/New_York) |
|
||||
| stripe_customer_id | CharField | Stripe integration |
|
||||
| paypal_customer_id | CharField | PayPal integration |
|
||||
| created_at | DateTime | Registration date |
|
||||
|
||||
> **Two-Pool Credit System (v1.8.3):** Plan credits consumed first, bonus credits only when plan = 0. Bonus credits never expire.
|
||||
|
||||
### Plan
|
||||
|
||||
| Field | Type | Purpose |
|
||||
|-------|------|---------|
|
||||
| name | CharField | Plan name (Free, Starter, Growth, Scale) |
|
||||
| included_credits | Integer | Monthly credit allocation |
|
||||
| max_sites | Integer | Site limit |
|
||||
| max_users | Integer | User limit |
|
||||
| max_keywords | Integer | Keyword limit |
|
||||
| max_clusters | Integer | Cluster limit |
|
||||
| max_content_ideas | Integer | Monthly idea limit |
|
||||
| max_content_words | Integer | Monthly word limit |
|
||||
| max_images_basic | Integer | Monthly basic image limit |
|
||||
| max_images_premium | Integer | Monthly premium image limit |
|
||||
| max_sites | Integer | Site limit (hard limit) |
|
||||
| max_users | Integer | User limit (hard limit) |
|
||||
| max_keywords | Integer | Keyword limit (hard limit) |
|
||||
| max_ahrefs_queries | Integer | Monthly Ahrefs queries (monthly limit) |
|
||||
| is_active | Boolean | Available for purchase |
|
||||
| is_internal | Boolean | Internal/test plan |
|
||||
|
||||
> **Note (v1.5.0+):** Operation limits like `max_clusters`, `max_content_words`, `max_images_basic`, `max_images_premium` were removed. All AI operations are now credit-based.
|
||||
|
||||
### Site
|
||||
|
||||
| Field | Type | Purpose |
|
||||
|
||||
Reference in New Issue
Block a user