# Generated by Django 4.2.7 on 2024-05-24 09:17

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('trainer', '0040_studentworkoutplan'),
        ('user_app', '0013_alter_assessmentattempt_complete_percent'),
    ]

    operations = [
        migrations.CreateModel(
            name='WorkoutAttempt',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('attempt_number', models.PositiveIntegerField(default=0)),
                ('completion_time', models.DurationField(null=True)),
                ('repetitions', models.IntegerField(null=True)),
                ('sets', models.IntegerField(null=True)),
                ('weight', models.FloatField(null=True)),
                ('completed_date', models.DateField(null=True)),
                ('complete_percent', models.FloatField(default=0, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user_app.appuser')),
                ('workout', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='trainer.studentworkoutplan')),
            ],
            options={
                'db_table': 'workout_attempt',
            },
        ),
    ]
