# Generated by Django 5.0.6 on 2024-12-17 19:40 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("action", "0001_initial"), ("user", "0001_initial"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name="DeviceLog", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("date", models.DateTimeField(auto_now_add=True)), ("event", models.CharField(max_length=255)), ("snapshot_uuid", models.UUIDField()), ( "institution", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="user.institution", ), ), ( "user", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, ), ), ], options={ "ordering": ["-date"], }, ), migrations.CreateModel( name="Note", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("date", models.DateTimeField(auto_now_add=True)), ("description", models.TextField()), ("snapshot_uuid", models.UUIDField()), ( "institution", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="user.institution", ), ), ( "user", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, ), ), ], options={ "ordering": ["-date"], }, ), ]