2021-01-21 21:06:58 +00:00
# Generated by Django 3.0.11 on 2021-01-21 21:06
2021-01-18 21:28:43 +00:00
2021-01-21 21:06:58 +00:00
import datetime
2020-12-28 18:30:51 +00:00
import django . core . validators
from django . db import migrations , models
import django . utils . timezone
2021-01-21 21:06:58 +00:00
import participation . models
2020-12-28 18:30:51 +00:00
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
]
operations = [
2021-01-21 21:06:58 +00:00
migrations . CreateModel (
name = ' Note ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' defender_writing ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) , ( 10 , 10 ) , ( 11 , 11 ) , ( 12 , 12 ) , ( 13 , 13 ) , ( 14 , 14 ) , ( 15 , 15 ) , ( 16 , 16 ) , ( 17 , 17 ) , ( 18 , 18 ) , ( 19 , 19 ) , ( 20 , 20 ) ] , default = 0 , verbose_name = ' defender writing note ' ) ) ,
( ' defender_oral ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) , ( 10 , 10 ) , ( 11 , 11 ) , ( 12 , 12 ) , ( 13 , 13 ) , ( 14 , 14 ) , ( 15 , 15 ) , ( 16 , 16 ) ] , default = 0 , verbose_name = ' defender oral note ' ) ) ,
( ' opponent_writing ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) ] , default = 0 , verbose_name = ' opponent writing note ' ) ) ,
( ' opponent_oral ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) , ( 10 , 10 ) ] , default = 0 , verbose_name = ' opponent oral note ' ) ) ,
( ' reporter_writing ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) ] , default = 0 , verbose_name = ' reporter writing note ' ) ) ,
( ' reporter_oral ' , models . PositiveSmallIntegerField ( choices = [ ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) , ( 4 , 4 ) , ( 5 , 5 ) , ( 6 , 6 ) , ( 7 , 7 ) , ( 8 , 8 ) , ( 9 , 9 ) , ( 10 , 10 ) ] , default = 0 , verbose_name = ' reporter oral note ' ) ) ,
] ,
options = {
' verbose_name ' : ' note ' ,
' verbose_name_plural ' : ' notes ' ,
} ,
) ,
2020-12-28 18:30:51 +00:00
migrations . CreateModel (
name = ' Participation ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2021-01-01 16:07:28 +00:00
( ' valid ' , models . BooleanField ( default = None , help_text = ' The participation got the validation of the organizers. ' , null = True , verbose_name = ' valid ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' final ' , models . BooleanField ( default = False , help_text = ' The team is selected for the final tournament. ' , verbose_name = ' selected for final ' ) ) ,
2020-12-28 18:30:51 +00:00
] ,
options = {
' verbose_name ' : ' participation ' ,
' verbose_name_plural ' : ' participations ' ,
} ,
) ,
2021-01-21 21:06:58 +00:00
migrations . CreateModel (
name = ' Passage ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' place ' , models . CharField ( default = ' Non indiqué ' , help_text = ' Where the solution is presented? ' , max_length = 255 , verbose_name = ' place ' ) ) ,
( ' solution_number ' , models . PositiveSmallIntegerField ( choices = [ ( 1 , ' Problem #1 ' ) , ( 2 , ' Problem #2 ' ) , ( 3 , ' Problem #3 ' ) , ( 4 , ' Problem #4 ' ) , ( 5 , ' Problem #5 ' ) , ( 6 , ' Problem #6 ' ) , ( 7 , ' Problem #7 ' ) , ( 8 , ' Problem #8 ' ) ] , verbose_name = ' defended solution ' ) ) ,
] ,
options = {
' verbose_name ' : ' passage ' ,
' verbose_name_plural ' : ' passages ' ,
} ,
) ,
2020-12-28 18:30:51 +00:00
migrations . CreateModel (
name = ' Pool ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' round ' , models . PositiveSmallIntegerField ( choices = [ ( 1 , ' Round 1 ' ) , ( 2 , ' Round 2 ' ) ] , verbose_name = ' round ' ) ) ,
( ' bbb_code ' , models . CharField ( blank = True , default = ' ' , help_text = ' The code of the form xxx-xxx-xxx at the end of the BBB link. ' , max_length = 11 , validators = [ django . core . validators . RegexValidator ( ' [a-z] {3} -[a-z] {3} -[a-z] {3} ' ) ] , verbose_name = ' BigBlueButton code ' ) ) ,
2020-12-28 18:30:51 +00:00
] ,
options = {
' verbose_name ' : ' pool ' ,
' verbose_name_plural ' : ' pools ' ,
} ,
) ,
migrations . CreateModel (
name = ' Solution ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' problem ' , models . PositiveSmallIntegerField ( choices = [ ( 1 , ' Problem #1 ' ) , ( 2 , ' Problem #2 ' ) , ( 3 , ' Problem #3 ' ) , ( 4 , ' Problem #4 ' ) , ( 5 , ' Problem #5 ' ) , ( 6 , ' Problem #6 ' ) , ( 7 , ' Problem #7 ' ) , ( 8 , ' Problem #8 ' ) ] , verbose_name = ' problem ' ) ) ,
2020-12-28 18:30:51 +00:00
( ' final_solution ' , models . BooleanField ( default = False , verbose_name = ' solution for the final tournament ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' file ' , models . FileField ( blank = True , default = ' ' , unique = True , upload_to = participation . models . get_solution_filename , verbose_name = ' file ' ) ) ,
2020-12-28 18:30:51 +00:00
] ,
options = {
' verbose_name ' : ' solution ' ,
' verbose_name_plural ' : ' solutions ' ,
} ,
) ,
migrations . CreateModel (
name = ' Synthesis ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' type ' , models . PositiveSmallIntegerField ( choices = [ ( 1 , ' opponent ' ) , ( 2 , ' reporter ' ) ] ) ) ,
2021-01-21 21:06:58 +00:00
( ' file ' , models . FileField ( blank = True , default = ' ' , unique = True , upload_to = participation . models . get_synthesis_filename , verbose_name = ' file ' ) ) ,
2020-12-28 18:30:51 +00:00
] ,
options = {
' verbose_name ' : ' synthesis ' ,
' verbose_name_plural ' : ' syntheses ' ,
} ,
) ,
migrations . CreateModel (
name = ' Team ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' name ' , models . CharField ( max_length = 255 , unique = True , verbose_name = ' name ' ) ) ,
( ' trigram ' , models . CharField ( help_text = ' The trigram must be composed of three uppercase letters. ' , max_length = 3 , unique = True , validators = [ django . core . validators . RegexValidator ( ' [A-Z] {3} ' ) ] , verbose_name = ' trigram ' ) ) ,
( ' access_code ' , models . CharField ( help_text = ' The access code let other people to join the team. ' , max_length = 6 , verbose_name = ' access code ' ) ) ,
] ,
options = {
' verbose_name ' : ' team ' ,
' verbose_name_plural ' : ' teams ' ,
} ,
) ,
migrations . CreateModel (
name = ' Tournament ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' name ' , models . CharField ( max_length = 255 , unique = True , verbose_name = ' name ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' date_start ' , models . DateField ( default = datetime . date . today , verbose_name = ' start ' ) ) ,
( ' date_end ' , models . DateField ( default = datetime . date . today , verbose_name = ' end ' ) ) ,
( ' max_teams ' , models . PositiveSmallIntegerField ( default = 9 , verbose_name = ' max team count ' ) ) ,
( ' price ' , models . PositiveSmallIntegerField ( default = 21 , verbose_name = ' price ' ) ) ,
2020-12-28 18:30:51 +00:00
( ' inscription_limit ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' limit date for registrations ' ) ) ,
( ' solution_limit ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' limit date to upload solutions ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' solutions_draw ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' random draw for solutions ' ) ) ,
2020-12-28 18:30:51 +00:00
( ' syntheses_first_phase_limit ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' limit date to upload the syntheses for the first phase ' ) ) ,
2021-01-21 21:06:58 +00:00
( ' solutions_available_second_phase ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' date when the solutions for the second round become available ' ) ) ,
2020-12-28 18:30:51 +00:00
( ' syntheses_second_phase_limit ' , models . DateTimeField ( default = django . utils . timezone . now , verbose_name = ' limit date to upload the syntheses for the second phase ' ) ) ,
( ' description ' , models . TextField ( blank = True , verbose_name = ' description ' ) ) ,
( ' final ' , models . BooleanField ( default = False , verbose_name = ' final ' ) ) ,
] ,
options = {
' verbose_name ' : ' tournament ' ,
' verbose_name_plural ' : ' tournaments ' ,
} ,
) ,
]