32 lines
1.5 KiB
Python
32 lines
1.5 KiB
Python
|
# Generated by Django 3.2.8 on 2021-11-16 16:29
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('people', '0002_auto_20211116_1144'),
|
||
|
('planning', '0001_initial'),
|
||
|
('followup', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Point',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('routine_type', models.PositiveSmallIntegerField(choices=[(0, 'Routine 1'), (1, 'Routine 2'), (2, 'Final')])),
|
||
|
('point_execution', models.DecimalField(decimal_places=3, max_digits=5)),
|
||
|
('point_difficulty', models.DecimalField(decimal_places=1, max_digits=3)),
|
||
|
('point_time_of_flight', models.DecimalField(decimal_places=3, max_digits=5)),
|
||
|
('point_horizontal_displacement', models.DecimalField(decimal_places=3, max_digits=4)),
|
||
|
('penality', models.DecimalField(decimal_places=1, max_digits=3)),
|
||
|
('total', models.DecimalField(decimal_places=3, max_digits=6)),
|
||
|
('event', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='planning.event')),
|
||
|
('gymnast', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='people.gymnast')),
|
||
|
],
|
||
|
),
|
||
|
]
|