From a7ff3125c254c3870da12a1cc917d9712389b873 Mon Sep 17 00:00:00 2001 From: nohkwanok Date: Tue, 12 Mar 2024 15:29:02 +0900 Subject: [PATCH] add migration file --- web/project/app/migrations/0001_initial.py | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 web/project/app/migrations/0001_initial.py diff --git a/web/project/app/migrations/0001_initial.py b/web/project/app/migrations/0001_initial.py new file mode 100644 index 0000000..a5ea87d --- /dev/null +++ b/web/project/app/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# Generated by Django 5.0.2 on 2024-03-12 06:26 + +import django.db.models.deletion +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="UserActivity", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("path", models.CharField(max_length=255)), + ("created_at", models.DateTimeField(auto_now_add=True)), + ( + "user", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to=settings.AUTH_USER_MODEL, + ), + ), + ], + ), + ]