# Generated by Django 3.0.7 on 2020-06-14 12:02

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields


class Migration(migrations.Migration):

    dependencies = [
        ('team', '0016_profile_image'),
        ('person', '0003_auto_20200613_1139'),
    ]

    operations = [
        migrations.CreateModel(
            name='PersonalRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(blank=True, null=True)),
                ('distance', models.PositiveIntegerField(help_text='meters')),
                ('minutes', models.PositiveIntegerField(default=0)),
                ('seconds', models.DecimalField(decimal_places=3, default=0, max_digits=5, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(59.999)])),
                ('lightweight', models.BooleanField(default=False)),
                ('pace', models.FloatField(default=0, editable=False)),
                ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='personal_records', to='person.PersonPage')),
                ('squad', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='team.Squad')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]

# Generated by Django 3.0.7 on 2020-06-14 12:02

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields


class Migration(migrations.Migration):

    dependencies = [
        ('team', '0016_profile_image'),
        ('person', '0003_auto_20200613_1139'),
    ]

    operations = [
        migrations.CreateModel(
            name='PersonalRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(blank=True, null=True)),
                ('distance', models.PositiveIntegerField(help_text='meters')),
                ('minutes', models.PositiveIntegerField(default=0)),
                ('seconds', models.DecimalField(decimal_places=3, default=0, max_digits=5, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(59.999)])),
                ('lightweight', models.BooleanField(default=False)),
                ('pace', models.FloatField(default=0, editable=False)),
                ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='personal_records', to='person.PersonPage')),
                ('squad', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='team.Squad')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]

# Generated by Django 3.0.7 on 2020-06-14 12:02