113 lines
3.8 KiB
Python
113 lines
3.8 KiB
Python
|
# Generated by Django 4.1.1 on 2022-12-28 13:28
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import jarvis.tools.models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
("followup", "0038_alter_chrono_chrono_type_and_more"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="CompetitivePointsStats",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"date",
|
||
|
models.DateField(
|
||
|
default=jarvis.tools.models.get_default_date,
|
||
|
verbose_name="Date",
|
||
|
),
|
||
|
),
|
||
|
("season", models.CharField(editable=False, max_length=9)),
|
||
|
("week_number", models.PositiveSmallIntegerField(editable=False)),
|
||
|
(
|
||
|
"informations",
|
||
|
models.TextField(
|
||
|
blank=True,
|
||
|
help_text="Only MarkDown is authorized",
|
||
|
null=True,
|
||
|
verbose_name="Comments",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"gender",
|
||
|
models.PositiveSmallIntegerField(
|
||
|
choices=[(0, "Male"), (1, "Female")], verbose_name="Gender"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"age_category",
|
||
|
models.PositiveSmallIntegerField(
|
||
|
choices=[
|
||
|
(11, "11-12"),
|
||
|
(13, "13-14"),
|
||
|
(15, "15-16"),
|
||
|
(17, "17-21"),
|
||
|
(22, "Senior"),
|
||
|
],
|
||
|
verbose_name="Age category",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"point_execution",
|
||
|
models.DecimalField(
|
||
|
decimal_places=3, max_digits=5, verbose_name="Execution"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"point_difficulty",
|
||
|
models.DecimalField(
|
||
|
decimal_places=1, max_digits=3, verbose_name="Difficulty"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"point_time_of_flight",
|
||
|
models.DecimalField(
|
||
|
decimal_places=3, max_digits=5, verbose_name="ToF"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"point_horizontal_displacement",
|
||
|
models.DecimalField(
|
||
|
decimal_places=3, max_digits=4, verbose_name="HD"
|
||
|
),
|
||
|
),
|
||
|
("total", models.DecimalField(decimal_places=3, max_digits=6)),
|
||
|
(
|
||
|
"routine_type",
|
||
|
models.PositiveSmallIntegerField(
|
||
|
choices=[
|
||
|
(0, "Other"),
|
||
|
(1, "Q1R1"),
|
||
|
(2, "Q1R2"),
|
||
|
(3, "Q2R1"),
|
||
|
(4, "SF"),
|
||
|
(5, "F"),
|
||
|
(6, "Q1R1S"),
|
||
|
(7, "Q1R2S"),
|
||
|
(8, "Q2R1S"),
|
||
|
(9, "SFS"),
|
||
|
(9, "FS"),
|
||
|
(99, "Other"),
|
||
|
]
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
options={
|
||
|
"abstract": False,
|
||
|
},
|
||
|
),
|
||
|
]
|