init commit
This commit is contained in:
51
workout/migrations/0001_initial.py
Normal file
51
workout/migrations/0001_initial.py
Normal file
@@ -0,0 +1,51 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-11 22:00
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('registered_user', '0002_remove_registereduser_phone_number'),
|
||||
('exercise', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Workout',
|
||||
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)),
|
||||
('name', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('description', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registered_user.registereduser')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='WorkoutExercise',
|
||||
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)),
|
||||
('weight', models.IntegerField(blank=True, max_length=4, null=True)),
|
||||
('reps', models.IntegerField(blank=True, max_length=4, null=True)),
|
||||
('exercise', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='workout_exercise_exercise', to='exercise.exercise')),
|
||||
('workout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='workout_exercise_workout', to='workout.workout')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CompletedWorkout',
|
||||
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)),
|
||||
('difficulty', models.PositiveSmallIntegerField(choices=[(1, 'easy'), (2, 'moderate'), (3, 'average'), (4, 'hard'), (5, 'death')])),
|
||||
('registered_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='completed_workout_user', to='registered_user.registereduser')),
|
||||
('workout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='completed_workout_workout', to='workout.workout')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-12 01:26
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='workout',
|
||||
old_name='user',
|
||||
new_name='registered_user',
|
||||
),
|
||||
]
|
||||
19
workout/migrations/0003_alter_workout_name.py
Normal file
19
workout/migrations/0003_alter_workout_name.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-12 01:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0002_rename_user_workout_registered_user'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='workout',
|
||||
name='name',
|
||||
field=models.CharField(default='q', max_length=255),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0004_workoutexercise_duration.py
Normal file
18
workout/migrations/0004_workoutexercise_duration.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-14 13:24
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0003_alter_workout_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='workoutexercise',
|
||||
name='duration',
|
||||
field=models.IntegerField(blank=True, max_length=4, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-22 02:08
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0004_workoutexercise_duration'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='completedworkout',
|
||||
name='total_time',
|
||||
field=models.IntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='completedworkout',
|
||||
name='workout_start_time',
|
||||
field=models.DateTimeField(default=datetime.datetime(2023, 6, 22, 2, 8, 12, 885580)),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
19
workout/migrations/0006_completedworkout_notes.py
Normal file
19
workout/migrations/0006_completedworkout_notes.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-22 03:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0005_completedworkout_total_time_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='completedworkout',
|
||||
name='notes',
|
||||
field=models.TextField(default=''),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0007_completedworkout_total_calories.py
Normal file
18
workout/migrations/0007_completedworkout_total_calories.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-06-24 04:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0006_completedworkout_notes'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='completedworkout',
|
||||
name='total_calories',
|
||||
field=models.FloatField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
26
workout/migrations/0008_plannedworkout.py
Normal file
26
workout/migrations/0008_plannedworkout.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 4.2.2 on 2023-07-02 04:12
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('registered_user', '0003_registereduser_has_nsfw_toggle'),
|
||||
('workout', '0007_completedworkout_total_calories'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PlannedWorkout',
|
||||
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)),
|
||||
('on_date', models.DateTimeField(auto_now=True)),
|
||||
('registered_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='planned_workout_registered_user', to='registered_user.registereduser')),
|
||||
('workout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='planned_workout_workout', to='workout.workout')),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0009_alter_plannedworkout_on_date.py
Normal file
18
workout/migrations/0009_alter_plannedworkout_on_date.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-07-02 04:15
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0008_plannedworkout'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='plannedworkout',
|
||||
name='on_date',
|
||||
field=models.DateTimeField(),
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0010_alter_plannedworkout_on_date.py
Normal file
18
workout/migrations/0010_alter_plannedworkout_on_date.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-07-02 04:16
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0009_alter_plannedworkout_on_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='plannedworkout',
|
||||
name='on_date',
|
||||
field=models.DateField(),
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0011_alter_completedworkout_notes.py
Normal file
18
workout/migrations/0011_alter_completedworkout_notes.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-07-03 01:36
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0010_alter_plannedworkout_on_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='completedworkout',
|
||||
name='notes',
|
||||
field=models.TextField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0012_workout_estimated_time.py
Normal file
18
workout/migrations/0012_workout_estimated_time.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-07-25 16:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0011_alter_completedworkout_notes'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='workout',
|
||||
name='estimated_time',
|
||||
field=models.FloatField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.2.2 on 2023-08-13 23:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0012_workout_estimated_time'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='completedworkout',
|
||||
name='total_calories',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='completedworkout',
|
||||
name='workout_uuid',
|
||||
field=models.CharField(blank=True, max_length=1000, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-08-13 23:35
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0013_remove_completedworkout_total_calories_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='completedworkout',
|
||||
old_name='workout_uuid',
|
||||
new_name='health_kit_workout_uuid',
|
||||
),
|
||||
]
|
||||
18
workout/migrations/0015_alter_completedworkout_difficulty.py
Normal file
18
workout/migrations/0015_alter_completedworkout_difficulty.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.2 on 2023-08-14 01:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workout', '0014_rename_workout_uuid_completedworkout_health_kit_workout_uuid'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='completedworkout',
|
||||
name='difficulty',
|
||||
field=models.PositiveSmallIntegerField(choices=[(0, 'na'), (1, 'easy'), (2, 'moderate'), (3, 'average'), (4, 'hard'), (5, 'death')]),
|
||||
),
|
||||
]
|
||||
0
workout/migrations/__init__.py
Normal file
0
workout/migrations/__init__.py
Normal file
Reference in New Issue
Block a user