# Generated by Django 5.0.8 on 2025-07-30 05:24 import django.db.models.deletion import uuid from decimal import Decimal from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='WorkflowUsage', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('workflow_name', models.CharField(max_length=255)), ('workflow_url', models.URLField()), ('fee_charged', models.DecimalField(decimal_places=2, default=Decimal('0.10'), max_digits=10)), ('status', models.CharField(choices=[('pending', 'Pending'), ('success', 'Success'), ('failed', 'Failed')], default='pending', max_length=20)), ('request_data', models.JSONField(blank=True, null=True)), ('response_data', models.JSONField(blank=True, null=True)), ('error_message', models.TextField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='workflow_usage', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created_at'], }, ), ]