# Generated by Django 5.2.17 on 2026-09-15 09:29 import django.db.models.deletion import uuid 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='AuditEvent', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('action', models.CharField(db_index=True, max_length=120)), ('object_type', models.CharField(db_index=True, max_length=120)), ('object_id', models.CharField(blank=True, db_index=True, max_length=120)), ('ip', models.GenericIPAddressField(blank=True, null=True)), ('before', models.JSONField(blank=True, default=dict)), ('after', models.JSONField(blank=True, default=dict)), ('metadata', models.JSONField(blank=True, default=dict)), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)), ('actor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created_at'], }, ), ]