# Generated by Django 5.2.16 on 2026-07-21 for VR-102 import django.conf import django.db.models.deletion import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("sources", "0001_initial"), ] operations = [ migrations.CreateModel( name="SourcePolicyReview", fields=[ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), ("created_at", models.DateTimeField(auto_now_add=True)), ("updated_at", models.DateTimeField(auto_now=True)), ("scope", models.CharField(choices=[("source", "Bronspecifiek"), ("domain", "Domeinbrede controle")], default="source", max_length=20)), ("decision", models.CharField(choices=[("allow", "Toestaan"), ("trial", "Proefrun"), ("pause", "Pauzeren"), ("deny", "Blokkeren"),], max_length=16)), ("reason", models.CharField(max_length=500)), ("evidence_link", models.URLField(blank=True, max_length=500)), ("notes", models.TextField(blank=True)), ("expires_at", models.DateTimeField(blank=True, null=True)), ("metadata", models.JSONField(blank=True, default=dict)), ("actor", models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name="policy_reviews", to=django.conf.settings.AUTH_USER_MODEL)), ("source", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name="policy_reviews", to="sources.source")), ], options={"ordering": ["-created_at"]}, ), migrations.CreateModel( name="SourceRobotsCache", fields=[ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), ("created_at", models.DateTimeField(auto_now_add=True)), ("updated_at", models.DateTimeField(auto_now=True)), ("origin", models.CharField(max_length=255, unique=True)), ("expires_at", models.DateTimeField()), ("etag", models.CharField(blank=True, max_length=255)), ("last_modified", models.CharField(blank=True, max_length=255)), ("allow_rules", models.JSONField(blank=True, default=dict)), ("disallow_rules", models.JSONField(blank=True, default=dict)), ("error", models.CharField(blank=True, max_length=500)), ("byte_length", models.PositiveIntegerField(default=0)), ], options={"ordering": ["origin"]}, ), ]