Add history + more components

This commit is contained in:
2024-10-03 22:29:32 +02:00
parent 8f9c83dc2a
commit d7f0d2a7f2
18 changed files with 352 additions and 30 deletions
@@ -1,4 +1,4 @@
# Generated by Django 5.1.1 on 2024-10-01 13:41
# Generated by Django 5.1.1 on 2024-10-01 14:14
import django.db.models.deletion
import simple_history.models
@@ -26,7 +26,7 @@ class Migration(migrations.Migration):
("last_modified_at", models.DateTimeField(blank=True, editable=False)),
("public_key", models.TextField(max_length=2048, null=True)),
("private_key", models.TextField(max_length=2048, null=True)),
("history_id", models.AutoField(primary_key=True, serialize=False)),
("history_id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("history_date", models.DateTimeField(db_index=True)),
("history_change_reason", models.CharField(max_length=100, null=True)),
("history_type", models.CharField(choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")], max_length=1)),