diff --git a/study_sense/tracker/migrations/0001_initial.py b/study_sense/tracker/migrations/0001_initial.py deleted file mode 100644 index e116a74..0000000 --- a/study_sense/tracker/migrations/0001_initial.py +++ /dev/null @@ -1,101 +0,0 @@ -# Generated by Django 4.2.1 on 2023-07-08 04:17 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name="Book", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=50)), - ("file", models.FileField(upload_to="")), - ("created_at", models.DateTimeField(auto_now_add=True)), - ("total_time", models.FloatField(default=0)), - ], - ), - migrations.CreateModel( - name="TimeTracking", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("start_time", models.DateTimeField()), - ("end_time", models.DateTimeField(blank=True, null=True)), - ("total_time", models.DurationField(blank=True, default=0, null=True)), - ( - "book", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="tracker.book" - ), - ), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.CreateModel( - name="Category", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("name", models.CharField(max_length=50)), - ("total_time", models.FloatField(default=0)), - ( - "user", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - to=settings.AUTH_USER_MODEL, - ), - ), - ], - ), - migrations.AddField( - model_name="book", - name="category", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to="tracker.category" - ), - ), - migrations.AddField( - model_name="book", - name="user", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL - ), - ), - ]