dos updates

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-20 14:45:21 +00:00
parent 0b3197d199
commit c777e5ccb2
93 changed files with 1368 additions and 33562 deletions

View File

@@ -1,6 +1,7 @@
# AI Functions Reference
**Last Verified:** January 6, 2026
**Last Verified:** January 20, 2026
**Version:** 1.8.4
---
@@ -8,12 +9,13 @@
IGNY8's AI engine provides functions for content planning and generation. Located in `backend/igny8_core/ai/`.
**Providers (v1.4.0):**
**Providers (v1.4.0+):**
- **OpenAI** - GPT-4 for text, DALL-E 3 for images (via `IntegrationProvider`)
- **Anthropic** - Claude models for text (via `IntegrationProvider`)
- **Runware** - Alternative image generation (via `IntegrationProvider`)
- **Bria** - Additional image generation option
**New in v1.4.0:**
**Key Features:**
- Provider API keys stored in `IntegrationProvider` model
- Model configurations stored in `AIModelConfig` model
- System defaults stored in `SystemAISettings` singleton

View File

@@ -1,6 +1,7 @@
# Django Admin Access Guide - Payment & Email Integration Settings
**Date:** January 7, 2026
**Last Updated:** January 20, 2026
**Version:** 1.8.4
**Purpose:** Guide to configure Stripe, PayPal, and Resend credentials via Django Admin
---

View File

@@ -1,5 +1,6 @@
# Architecture Knowledge Base
**Last Updated:** December 14, 2025
**Last Updated:** January 20, 2026
**Version:** 1.8.4
**Purpose:** Critical architectural patterns, common issues, and solutions reference
---

View File

@@ -1,6 +1,8 @@
# Database Models Reference
**Last Verified:** January 6, 2026
**Last Verified:** January 20, 2026
**Version:** 1.8.4
**Total Models:** 52+
---
@@ -8,14 +10,32 @@
| Scope | Models | Base Class | Filter By |
|-------|--------|------------|-----------|
| **Global** | `IntegrationProvider`, `AIModelConfig`, `SystemAISettings`, `GlobalAIPrompt`, `GlobalAuthorProfile`, `GlobalStrategy`, `GlobalModuleSettings`, `Industry`, `SeedKeyword` | `models.Model` | None (platform-wide) |
| **Account** | `Account`, `User`, `Plan`, `AccountSettings`, `ModuleEnableSettings`, `AISettings`, `AIPrompt`, `AuthorProfile`, `CreditBalance` | `AccountBaseModel` | `account` |
| **Site** | `Site`, `PublishingSettings`, `AutomationConfig`, `SiteIntegration` | `AccountBaseModel` | `account`, `site` |
| **Site+Sector** | `Keywords`, `Clusters`, `ContentIdeas`, `Tasks`, `Content`, `Images` | `SiteSectorBaseModel` | `site`, `sector` |
| **Global** | `IntegrationProvider`, `AIModelConfig`, `SystemAISettings`, `GlobalAIPrompt`, `GlobalAuthorProfile`, `GlobalStrategy`, `GlobalModuleSettings`, `Industry`, `IndustrySector`, `SeedKeyword` | `models.Model` | None (platform-wide) |
| **Account** | `Account`, `User`, `Plan`, `Subscription`, `AccountSettings`, `ModuleEnableSettings`, `AISettings`, `AIPrompt`, `AuthorProfile`, `CreditBalance`, `PasswordResetToken` | `AccountBaseModel` | `account` |
| **Site** | `Site`, `PublishingSettings`, `AutomationConfig`, `DefaultAutomationConfig`, `AutomationRun`, `SiteIntegration`, `SiteUserAccess` | `AccountBaseModel` | `account`, `site` |
| **Site+Sector** | `Keywords`, `Clusters`, `ContentIdeas`, `Tasks`, `Content`, `Images`, `ContentTaxonomyRelation` | `SiteSectorBaseModel` | `site`, `sector` |
| **Billing** | `CreditCostConfig`, `BillingConfiguration`, `CreditPackage`, `PaymentMethodConfig`, `WebhookEvent` | `models.Model` | varies |
| **System** | `SystemSettings`, `UserSettings`, `EmailSettings`, `EmailTemplate`, `EmailLog` | `models.Model` | varies |
| **Plugins** | `Plugin`, `PluginVersion`, `PluginInstallation`, `PluginDownload` | `models.Model` | varies |
---
## System Models (v1.4.0) (`igny8_core/modules/system/`)
## Model Count by Location
| Location | Count | Models |
|----------|-------|--------|
| `auth/models.py` | 10 | Account, User, Plan, Subscription, Industry, IndustrySector, SeedKeyword, Site, SiteUserAccess, PasswordResetToken |
| `modules/system/` | 10 | IntegrationProvider, SystemAISettings, SystemSettings, UserSettings, EmailSettings, EmailTemplate, EmailLog, GlobalAIPrompt, GlobalAuthorProfile, GlobalStrategy |
| `business/automation/` | 3 | DefaultAutomationConfig, AutomationConfig, AutomationRun |
| `business/billing/` | 6 | CreditCostConfig, BillingConfiguration, CreditPackage, PaymentMethodConfig, AIModelConfig, WebhookEvent |
| `business/content/` | 1 | ContentTaxonomyRelation |
| `plugins/` | 4 | Plugin, PluginVersion, PluginInstallation, PluginDownload |
| `modules/planner/` | 3 | Keywords, Clusters, ContentIdeas |
| `modules/writer/` | 3 | Tasks, Content, Images |
---
## System Models (v1.4.0+) (`igny8_core/modules/system/`)
**Purpose:** Centralized AI configuration, provider API keys, and system-wide defaults.
@@ -361,17 +381,15 @@ class Keyword(models.Model):
difficulty = IntegerField(null=True)
cpc = DecimalField(null=True)
status = CharField(choices=KEYWORD_STATUS) # pending, clustered, used, archived
status = CharField(choices=KEYWORD_STATUS) # new, mapped
created_by = ForeignKey(User)
created_at = DateTimeField(auto_now_add=True)
```
**Status Values:**
- `pending` - New, awaiting clustering
- `clustered` - Assigned to a cluster
- `used` - Used in content idea
- `archived` - No longer active
- `new` - Ready for clustering
- `mapped` - Assigned to a cluster
---
@@ -433,8 +451,7 @@ class Task(models.Model):
primary_keyword = CharField(max_length=255)
secondary_keywords = JSONField(default=list)
status = CharField(choices=TASK_STATUS) # pending, in_progress, completed, cancelled
priority = CharField(choices=PRIORITY) # low, medium, high
status = CharField(choices=TASK_STATUS) # queued, completed
assigned_to = ForeignKey(User, null=True)
due_date = DateField(null=True)

View File

@@ -1,5 +1,8 @@
# Global Keywords Database (SeedKeyword) - Import Guide
**Last Updated:** January 20, 2026
**Version:** 1.8.4
## Overview
The Global Keywords Database stores canonical keyword suggestions that can be imported into account-specific keywords. These are organized by Industry and Sector.