39 lines
1.7 KiB
Python
39 lines
1.7 KiB
Python
# Generated by Django 4.2.2 on 2023-07-17 18:54
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('exercise', '0006_alter_exercise_name'),
|
|
('workout', '0011_alter_completedworkout_notes'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Superset',
|
|
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)),
|
|
('rounds', models.IntegerField(blank=True, max_length=3, null=True)),
|
|
('workout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='workout.workout')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='SupersetExercise',
|
|
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)),
|
|
('exercise', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='superset_exercise_exercise', to='exercise.exercise')),
|
|
('superset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='superset_exercise_exercise', to='superset.superset')),
|
|
],
|
|
),
|
|
]
|