from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("plugins", "0001_initial"), ] operations = [ migrations.CreateModel( name="AuditEvent", fields=[ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), ("created_at", models.DateTimeField(auto_now_add=True)), ("actor", models.CharField(blank=True, max_length=150)), ("action", models.CharField(max_length=80)), ("target", models.CharField(blank=True, max_length=200)), ("ip_address", models.GenericIPAddressField(blank=True, null=True)), ("extra", models.JSONField(blank=True, default=dict)), ], options={ "verbose_name": "audit event", "verbose_name_plural": "audit events", "ordering": ["-created_at"], }, ), migrations.AddIndex( model_name="auditevent", index=models.Index(fields=["-created_at"], name="plugins_aud_created_46edd2_idx"), ), migrations.AddIndex( model_name="auditevent", index=models.Index(fields=["actor"], name="plugins_aud_actor_7de72d_idx"), ), migrations.AddIndex( model_name="auditevent", index=models.Index(fields=["action"], name="plugins_aud_action_d86f22_idx"), ), ]