AI AUtomtaion, Schudelign and publishign fromt and backe end refoactr
This commit is contained in:
56
backend/migrations/0014_automation_per_run_limits.py
Normal file
56
backend/migrations/0014_automation_per_run_limits.py
Normal file
@@ -0,0 +1,56 @@
|
||||
# Generated manually for adding per-run limits to AutomationConfig
|
||||
# Run: python manage.py migrate
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('igny8_core', '0002_wordpress_sync_fields'), # Adjust based on your actual dependencies
|
||||
]
|
||||
|
||||
operations = [
|
||||
# Per-run item limits (0 = unlimited)
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_keywords_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max keywords to process in stage 1 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_clusters_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max clusters to process in stage 2 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_ideas_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max ideas to process in stage 3 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_tasks_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max tasks to process in stage 4 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_content_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max content pieces for image prompts in stage 5 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_images_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max images to generate in stage 6 (0=unlimited)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_approvals_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max content pieces to auto-approve in stage 7 (0=unlimited)'),
|
||||
),
|
||||
# Credit budget limit per run
|
||||
migrations.AddField(
|
||||
model_name='automationconfig',
|
||||
name='max_credits_per_run',
|
||||
field=models.IntegerField(default=0, help_text='Max credits to use per run (0=unlimited)'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user