class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='JsonData',
            fields=[
                ('userId', models.IntegerField(verbose_name=10)),
                ('id', models.IntegerField(primary_key=True, serialize=False, verbose_name=10)),
                ('title', models.CharField(max_length=100)),
                ('body', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Upload',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('UserName', models.CharField(max_length=100)),
                ('Email', models.EmailField(max_length=254)),
                ('my_file', models.FileField(blank=True, upload_to='doc', validators=[application.models.validate_document, django.core.validators.FileExtensionValidator(allowed_extensions=['json'])])),
            ],
            options={
                'db_table': 'upload',
            },
        ),
    ]
Exemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='School',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='name')),
            ],
        ),
        migrations.CreateModel(
            name='Wave',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('start', models.DateTimeField()),
                ('end', models.DateTimeField()),
                ('num_days_to_rsvp', models.IntegerField()),
                ('is_walk_in_wave', models.BooleanField(default=False, verbose_name='Is this wave for walk-ins?')),
            ],
        ),
        migrations.CreateModel(
            name='Application',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('datetime_submitted', models.DateTimeField(auto_now_add=True)),
                ('status', models.CharField(choices=[('P', 'Under Review'), ('R', 'Waitlisted'), ('A', 'Admitted'), ('C', 'Confirmed'), ('X', 'Declined'), ('I', 'Checked in'), ('E', 'Expired')], default='P', max_length=1)),
                ('first_name', models.CharField(max_length=255, verbose_name='first name')),
                ('last_name', models.CharField(max_length=255, verbose_name='last name')),
                ('extra_links', models.CharField(blank=True, max_length=200, verbose_name="Point us to anything you'd like us to look at while considering your application")),
                ('question1', models.TextField(max_length=500, verbose_name='Tell us your best programming joke')),
                ('question2', models.TextField(max_length=500, verbose_name="What is the one thing you'd build if you had unlimited resources?")),
                ('question3', models.TextField(max_length=500, verbose_name="What is a cool prize you'd like to win at Hacklahoma?")),
                ('resume', models.FileField(help_text='Companies will use this resume to offer interviews for internships and full-time positions.', upload_to=application.models.uuid_generator, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'])], verbose_name='Upload your resume (PDF only)')),
                ('major', models.CharField(max_length=255, verbose_name="What's your major?")),
                ('classification', models.CharField(choices=[('Fr', 'Freshman'), ('So', 'Sophomore'), ('Jr', 'Junior'), ('Sr', 'Senior'), ('Ma', "Master's Student"), ('PhD', 'PhD Student'), ('O', 'Other')], max_length=3, verbose_name='What classification are you?')),
                ('gender', models.CharField(choices=[('NA', 'Prefer not to answer'), ('M', 'Male'), ('F', 'Female'), ('NB', 'Non-binary'), ('X', 'Prefer to self-describe')], default='NA', max_length=2, verbose_name="What's your gender?")),
                ('gender_other', models.CharField(blank=True, max_length=255, null=True, verbose_name='Self-describe')),
                ('race', multiselectfield.db.fields.MultiSelectField(choices=[('AI', 'American Indian or Alaskan Native'), ('AS', 'Asian'), ('BL', 'Black or African-American'), ('HI', 'Hispanic or Latino'), ('NH', 'Native Hawaiian or other Pacific Islander'), ('WH', 'White'), ('NA', 'Prefer not to answer'), ('O', 'Prefer to self-describe')], max_length=41, verbose_name='What race(s) do you identify with?')),
                ('race_other', models.CharField(blank=True, max_length=255, null=True, verbose_name='Self-describe')),
                ('grad_year', models.IntegerField(choices=[(2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025)], verbose_name='What is your anticipated graduation year?')),
                ('num_hackathons_attended', models.CharField(choices=[('0', 'This will be my first!'), ('1-3', '1-3'), ('4-7', '4-7'), ('8-10', '8-10'), ('10+', '10+')], max_length=22, verbose_name='How many hackathons have you attended?')),
                ('agree_to_coc', models.BooleanField(choices=[(True, 'Agree')], default=None)),
                ('is_adult', models.BooleanField(choices=[(True, 'Agree')], default=None, help_text='Please note that freshmen under 18 must be accompanied by an adult or prove that they go to Texas A&M.', verbose_name='Please confirm you are 18 or older.')),
                ('shirt_size', models.CharField(choices=[('WXXS', "Women's XXS"), ('WXS', "Women's XS"), ('WS', "Women's S"), ('WM', "Women's M"), ('WL', "Women's L"), ('WXL', "Women's XL"), ('WXXL', "Women's XXL"), ('XXS', 'Unisex XXS'), ('XS', 'Unisex XS'), ('S', 'Unisex S'), ('M', 'Unisex M'), ('L', 'Unisex L'), ('XL', 'Unisex XL'), ('XXL', 'Unisex XXL')], max_length=4, verbose_name='What size shirt do you wear?')),
                ('transport_needed', models.CharField(choices=[('D', 'Driving'), ('B', 'Bus (Greyhound, Megabus, etc.)'), ('F', 'Flying'), ('P', 'Public Transportation'), ('M', 'Walking/Biking')], max_length=11, verbose_name='How will you be getting to the event?')),
                ('travel_reimbursement', models.BooleanField(default=False, help_text='Travel reimbursement is only provided if you stay the whole time and submit a project.', verbose_name="I'd like to apply for travel reimbursement")),
                ('additional_accommodations', models.TextField(blank=True, max_length=500, verbose_name='Do you require any special accommodations at the event?')),
                ('dietary_restrictions', models.CharField(choices=[('None', None), ('Vegan', 'Vegan'), ('Vegetarian', 'Vegetarian'), ('Halal', 'Halal'), ('Kosher', 'Kosher'), ('Gluten-free', 'Gluten-free'), ('Food allergy', 'Food allergy'), ('Other', 'Other')], default='None', max_length=50, verbose_name='Do you have any dietary restrictions?')),
                ('confirmation_deadline', models.DateTimeField(blank=True, null=True)),
                ('notes', models.TextField(blank=True, max_length=300, verbose_name='Anything else you would like us to know?')),
                ('school', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.School', verbose_name='What school do you go to?')),
            ],
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='ClientUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('is_manager', models.BooleanField(default=False)),
                ('client_company_id', models.IntegerField()),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', application.models.ClientUserManager()),
            ],
        ),
    ]
Exemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="School",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=255,
                                          verbose_name="name")),
            ],
        ),
        migrations.CreateModel(
            name="Wave",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("start", models.DateTimeField()),
                ("end", models.DateTimeField()),
                ("num_days_to_rsvp", models.IntegerField()),
                (
                    "is_walk_in_wave",
                    models.BooleanField(
                        default=False,
                        verbose_name="Is this wave for walk-ins?"),
                ),
            ],
        ),
        migrations.CreateModel(
            name="Application",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("datetime_submitted",
                 models.DateTimeField(auto_now_add=True)),
                (
                    "status",
                    models.CharField(
                        choices=[
                            ("P", "Under Review"),
                            ("R", "Waitlisted"),
                            ("A", "Admitted"),
                            ("C", "Confirmed"),
                            ("X", "Declined"),
                            ("I", "Checked in"),
                            ("E", "Expired"),
                        ],
                        default="P",
                        max_length=1,
                    ),
                ),
                (
                    "first_name",
                    models.CharField(max_length=255,
                                     verbose_name="first name"),
                ),
                (
                    "last_name",
                    models.CharField(max_length=255, verbose_name="last name"),
                ),
                (
                    "extra_links",
                    models.CharField(
                        blank=True,
                        max_length=200,
                        verbose_name=
                        "Point us to anything you'd like us to look at while considering your application",
                    ),
                ),
                (
                    "question1",
                    models.TextField(
                        max_length=500,
                        verbose_name="Tell us your best programming joke",
                    ),
                ),
                (
                    "question2",
                    models.TextField(
                        max_length=500,
                        verbose_name=
                        "What is the one thing you'd build if you had unlimited resources?",
                    ),
                ),
                (
                    "question3",
                    models.TextField(
                        max_length=500,
                        verbose_name=
                        "What is a cool prize you'd like to win at TAMUhack?",
                    ),
                ),
                (
                    "resume",
                    models.FileField(
                        help_text=
                        "Companies will use this resume to offer interviews for internships and full-time positions.",
                        upload_to=application.models.uuid_generator,
                        validators=[
                            django.core.validators.FileExtensionValidator(
                                allowed_extensions=["pdf"])
                        ],
                        verbose_name="Upload your resume (PDF only)",
                    ),
                ),
                (
                    "major",
                    models.CharField(max_length=255,
                                     verbose_name="What's your major?"),
                ),
                (
                    "classification",
                    models.CharField(
                        choices=[
                            ("Fr", "Freshman"),
                            ("So", "Sophomore"),
                            ("Jr", "Junior"),
                            ("Sr", "Senior"),
                            ("Ma", "Master's Student"),
                            ("PhD", "PhD Student"),
                            ("O", "Other"),
                        ],
                        max_length=3,
                        verbose_name="What classification are you?",
                    ),
                ),
                (
                    "gender",
                    models.CharField(
                        choices=[
                            ("NA", "Prefer not to answer"),
                            ("M", "Male"),
                            ("F", "Female"),
                            ("NB", "Non-binary"),
                            ("X", "Prefer to self-describe"),
                        ],
                        default="NA",
                        max_length=2,
                        verbose_name="What's your gender?",
                    ),
                ),
                (
                    "gender_other",
                    models.CharField(
                        blank=True,
                        max_length=255,
                        null=True,
                        verbose_name="Self-describe",
                    ),
                ),
                (
                    "race",
                    multiselectfield.db.fields.MultiSelectField(
                        choices=[
                            ("AI", "American Indian or Alaskan Native"),
                            ("AS", "Asian"),
                            ("BL", "Black or African-American"),
                            ("HI", "Hispanic or Latino"),
                            ("NH",
                             "Native Hawaiian or other Pacific Islander"),
                            ("WH", "White"),
                            ("NA", "Prefer not to answer"),
                            ("O", "Prefer to self-describe"),
                        ],
                        max_length=41,
                        verbose_name="What race(s) do you identify with?",
                    ),
                ),
                (
                    "race_other",
                    models.CharField(
                        blank=True,
                        max_length=255,
                        null=True,
                        verbose_name="Self-describe",
                    ),
                ),
                (
                    "grad_year",
                    models.IntegerField(
                        choices=[
                            (2020, 2020),
                            (2021, 2021),
                            (2022, 2022),
                            (2023, 2023),
                            (2024, 2024),
                        ],
                        verbose_name=
                        "What is your anticipated graduation year?",
                    ),
                ),
                (
                    "num_hackathons_attended",
                    models.CharField(
                        choices=[
                            ("0", "This will be my first!"),
                            ("1-3", "1-3"),
                            ("4-7", "4-7"),
                            ("8-10", "8-10"),
                            ("10+", "10+"),
                        ],
                        max_length=22,
                        verbose_name="How many hackathons have you attended?",
                    ),
                ),
                (
                    "agree_to_coc",
                    models.BooleanField(choices=[(True, "Agree")],
                                        default=None),
                ),
                (
                    "is_adult",
                    models.BooleanField(
                        choices=[(True, "Agree")],
                        default=None,
                        help_text=
                        "Please note that freshmen under 18 must be accompanied by an adult or prove that they go to Texas A&M.",
                        verbose_name="Please confirm you are 18 or older.",
                    ),
                ),
                (
                    "shirt_size",
                    models.CharField(
                        choices=[
                            ("WXXS", "Women's XXS"),
                            ("WXS", "Women's XS"),
                            ("WS", "Women's S"),
                            ("WM", "Women's M"),
                            ("WL", "Women's L"),
                            ("WXL", "Women's XL"),
                            ("WXXL", "Women's XXL"),
                            ("XXS", "Unisex XXS"),
                            ("XS", "Unisex XS"),
                            ("S", "Unisex S"),
                            ("M", "Unisex M"),
                            ("L", "Unisex L"),
                            ("XL", "Unisex XL"),
                            ("XXL", "Unisex XXL"),
                        ],
                        max_length=4,
                        verbose_name="What size shirt do you wear?",
                    ),
                ),
                (
                    "transport_needed",
                    models.CharField(
                        choices=[
                            ("D", "Driving"),
                            ("B", "TAMUhack Bus"),
                            ("BUT", "TAMUhack Bus - UT Austin"),
                            ("BUTD", "TAMUhack Bus - UT Dallas"),
                            ("BUTA", "TAMUhack Bus - UT Arlington"),
                            ("BUTSA", "TAMUhack Bus - UTSA"),
                            ("BUTRGV", "TAMUhack Bus - UTRGV"),
                            ("OB", "Other Bus (Greyhound, Megabus, etc.)"),
                            ("F", "Flying"),
                            ("P", "Public Transportation"),
                            ("M", "Walking/Biking"),
                        ],
                        max_length=11,
                        verbose_name="How will you be getting to the event?",
                    ),
                ),
                (
                    "travel_reimbursement",
                    models.BooleanField(
                        default=False,
                        help_text=
                        "Travel reimbursement is only provided if you stay the whole time and submit a project.",
                        verbose_name=
                        "I'd like to apply for travel reimbursement",
                    ),
                ),
                (
                    "additional_accommodations",
                    models.TextField(
                        blank=True,
                        max_length=500,
                        verbose_name=
                        "Do you require any special accommodations at the event?",
                    ),
                ),
                (
                    "dietary_restrictions",
                    models.CharField(
                        choices=[
                            ("None", None),
                            ("Vegan", "Vegan"),
                            ("Vegetarian", "Vegetarian"),
                            ("Halal", "Halal"),
                            ("Kosher", "Kosher"),
                            ("Gluten-free", "Gluten-free"),
                            ("Food allergy", "Food allergy"),
                            ("Other", "Other"),
                        ],
                        default="None",
                        max_length=50,
                        verbose_name="Do you have any dietary restrictions?",
                    ),
                ),
                ("confirmation_deadline",
                 models.DateTimeField(blank=True, null=True)),
                (
                    "notes",
                    models.TextField(
                        blank=True,
                        max_length=300,
                        verbose_name="Anything else you would like us to know?",
                    ),
                ),
                (
                    "school",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="application.School",
                        verbose_name="What school do you go to?",
                    ),
                ),
            ],
        ),
    ]
Exemplo n.º 5
0
class Migration(migrations.Migration):

    dependencies = [
        ('application', '0002_remove_application_facebook'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='application',
            name='description',
        ),
        migrations.RemoveField(
            model_name='application',
            name='diet',
        ),
        migrations.RemoveField(
            model_name='application',
            name='essay',
        ),
        migrations.RemoveField(
            model_name='application',
            name='shirt_size',
        ),
        migrations.RemoveField(
            model_name='application',
            name='shirt_style',
        ),
        migrations.RemoveField(
            model_name='application',
            name='special_needs',
        ),
        migrations.RemoveField(
            model_name='application',
            name='university',
        ),
        migrations.AddField(
            model_name='application',
            name='can_move',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='application',
            name='city',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='country',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='course',
            field=models.CharField(blank=True, max_length=30, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='cpf',
            field=models.CharField(default='', max_length=20, validators=[application.models.CPFValidator(0, 'CPF inválido')]),
        ),
        migrations.AddField(
            model_name='application',
            name='dream_company',
            field=models.CharField(blank=True, max_length=100, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='education',
            field=models.CharField(choices=[('Ensino Fundamental', 'Ensino Fundamental'), ('Ensino Médio', 'Ensino Médio'), ('Graduação', 'Graduação'), ('Mestrado', 'Mestrado'), ('MBA', 'MBA'), ('Doutorado', 'Doutorado'), ('Pós Doutorado', 'Pós Doutorado')], default='', max_length=20),
        ),
        migrations.AddField(
            model_name='application',
            name='english_level',
            field=models.CharField(blank=True, choices=[('basic', 'Básico'), ('intermediate', 'Intermediário'), ('advanced', 'Avançado')], max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='excel_level',
            field=models.CharField(blank=True, choices=[('basic', 'Básico'), ('intermediate', 'Intermediário'), ('advanced', 'Avançado')], max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='extra_courses',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='first_timer',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='application',
            name='interests',
            field=models.CharField(default='', max_length=200),
        ),
        migrations.AddField(
            model_name='application',
            name='other_languages',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='referrer',
            field=models.CharField(default='', max_length=100),
        ),
        migrations.AddField(
            model_name='application',
            name='school',
            field=models.CharField(blank=True, max_length=100, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='state',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='time_slots',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AlterField(
            model_name='application',
            name='age',
            field=models.IntegerField(validators=[django.core.validators.MinValueValidator(5, 'A idade mínima é 5 anos.')]),
        ),
        migrations.AlterField(
            model_name='application',
            name='enroll_year',
            field=models.IntegerField(null=True, verbose_name=[django.core.validators.MinValueValidator(1900, 'Hmm, como?'), django.core.validators.MaxValueValidator(2019), 'Hmm, como?']),
        ),
        migrations.AlterField(
            model_name='application',
            name='phone',
            field=models.CharField(max_length=20, null=True),
        ),
    ]
Exemplo n.º 6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Assento',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('numero', models.IntegerField(verbose_name='Assento')),
                ('disponibilidade', models.CharField(choices=[('Disponível', 'Disponível'), ('Indisponível', 'Indisponível')], max_length=100, verbose_name='Disponibilidade')),
            ],
            options={
                'verbose_name': 'Assento',
                'verbose_name_plural': 'Assentos',
            },
        ),
        migrations.CreateModel(
            name='Compra',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('codigo', models.IntegerField(unique=True, verbose_name='Código')),
                ('estado', models.CharField(choices=[('AC', 'AC'), ('AL', 'AL'), ('AP', 'AP'), ('AM', 'AM'), ('BA', 'BA'), ('CE', 'CE'), ('DF', 'DF'), ('ES', 'ES'), ('GO', 'GO'), ('MA', 'MA'), ('MT', 'MT'), ('MS', 'MS'), ('MG', 'MG'), ('PA', 'PA'), ('PB', 'PB'), ('PR', 'PR'), ('PE', 'PE'), ('PI', 'PI'), ('RJ', 'RJ'), ('RN', 'RN'), ('RS', 'RS'), ('RO', 'RO'), ('RR', 'RR'), ('SC', 'SC'), ('SP', 'SP'), ('SE', 'SE'), ('TO', 'TO')], max_length=100, verbose_name='UF')),
                ('cidade', models.CharField(max_length=100, verbose_name='Cidade')),
                ('cep', models.CharField(help_text='Digite sem pontos e traços.', max_length=8, verbose_name='CEP')),
                ('endereco', models.CharField(max_length=200, verbose_name='Endereço')),
                ('valor', models.DecimalField(decimal_places=2, max_digits=6, verbose_name='Valor')),
            ],
            options={
                'verbose_name': 'Compra',
                'verbose_name_plural': 'Compras',
            },
        ),
        migrations.CreateModel(
            name='Filme',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titulo', models.CharField(max_length=200, verbose_name='Título')),
                ('cartaz', stdimage.models.StdImageField(blank=True, null=True, upload_to=application.models.get_file_path, verbose_name='Cartaz')),
                ('duracao', models.CharField(help_text='Use este formato: 02h30min', max_length=8, verbose_name='Duração')),
                ('sinopse', models.TextField(max_length=1000, verbose_name='Sinopse')),
                ('trailer', models.URLField(blank=True, null=True, verbose_name='Trailer')),
                ('dataEstreia', models.DateField(blank=True, help_text='Use este formato: DD/MM/AAAA', null=True, verbose_name='Data de Estreia')),
            ],
            options={
                'verbose_name': 'Filme',
                'verbose_name_plural': 'Filmes',
            },
        ),
        migrations.CreateModel(
            name='Sala',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('numero', models.IntegerField(unique=True, verbose_name='Número')),
            ],
            options={
                'verbose_name': 'Sala',
                'verbose_name_plural': 'Salas',
            },
        ),
        migrations.CreateModel(
            name='Usuario',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=100, verbose_name='Nome')),
                ('cpf', models.CharField(help_text='Digite sem pontos e traços.', max_length=11, unique=True, verbose_name='CPF')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')),
                ('senha', models.CharField(max_length=30, verbose_name='Senha')),
            ],
            options={
                'verbose_name': 'Usuário',
                'verbose_name_plural': 'Usuários',
            },
        ),
        migrations.CreateModel(
            name='Sessao',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data', models.DateField(help_text='Use este formato: DD/MM/AAAA', verbose_name='Data')),
                ('horario', models.TimeField(help_text='Use este formato: HH:MM', verbose_name='Horário')),
                ('filme', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Filme')),
                ('sala', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.Sala')),
            ],
            options={
                'verbose_name': 'Sessão',
                'verbose_name_plural': 'Sessões',
            },
        ),
        migrations.CreateModel(
            name='Ingresso',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('codigo', models.IntegerField(unique=True, verbose_name='Código')),
                ('assento', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.Assento')),
                ('compra', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='application.Compra')),
                ('sala', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.Sala')),
                ('sessao', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.Sessao')),
            ],
            options={
                'verbose_name': 'Ingresso',
                'verbose_name_plural': 'Ingressos',
            },
        ),
        migrations.AddField(
            model_name='compra',
            name='usuario',
            field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='application.Usuario'),
        ),
        migrations.AddField(
            model_name='assento',
            name='sala',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Sala'),
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='PBI',
            fields=[
                ('pbi_id', models.AutoField(primary_key=True, serialize=False)),
                ('epic', models.TextField(blank=True, default=' ')),
                ('user_story', models.TextField(default=' ')),
                ('story_point', models.IntegerField(default=0)),
                ('status', models.CharField(choices=[('New', 'Not yet started'), ('Progress', 'In progress'), ('Not', 'Unfinished'), ('Done', 'Completed')], default='New', max_length=50)),
                ('priority', models.IntegerField(blank=True, default=application.models.PBI.getNumOfPbi, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Project',
            fields=[
                ('project_id', models.AutoField(primary_key=True, serialize=False)),
                ('project_name', models.CharField(default=' ', max_length=100)),
                ('project_description', models.TextField(default=' ')),
                ('status', models.CharField(choices=[('Progress', 'In progress'), ('Done', 'Completed')], default='Progress', max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Task',
            fields=[
                ('task_id', models.AutoField(primary_key=True, serialize=False)),
                ('task_description', models.TextField(default=' ')),
                ('effort_hour', models.IntegerField(default=0)),
                ('status', models.CharField(choices=[('New', 'Not yet started'), ('Progress', 'In progress'), ('Not', 'Unfinished'), ('Done', 'Completed')], default='New', max_length=50)),
                ('pbi_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.PBI')),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('user_id', models.AutoField(primary_key=True, serialize=False)),
                ('username', models.CharField(default=' ', max_length=30, unique=True)),
                ('password', models.CharField(default=' ', max_length=20)),
                ('email', models.EmailField(default=' ', max_length=254)),
                ('name', models.CharField(default=' ', max_length=50)),
                ('role', models.CharField(choices=[('SM', 'Scrum Master'), ('PO', 'Product Owner'), ('D', 'Developer')], default='D', max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='WorksOnTask',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('task_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Task')),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.User')),
            ],
        ),
        migrations.CreateModel(
            name='WorksOnProject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('project_id', models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='application.Project')),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.User')),
            ],
        ),
        migrations.CreateModel(
            name='Sprint',
            fields=[
                ('sprint_id', models.AutoField(primary_key=True, serialize=False)),
                ('sprint_number', models.IntegerField(blank=True, default=1, null=True, unique=True)),
                ('start_date', models.DateField(blank=True, default=None, null=True)),
                ('end_date', models.DateField(blank=True, null=True)),
                ('status', models.CharField(choices=[('Progress', 'In progress'), ('Done', 'Completed')], default='Progress', max_length=50)),
                ('max_effort_hour', models.IntegerField(default=0)),
                ('project_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Project')),
            ],
        ),
        migrations.AddField(
            model_name='pbi',
            name='project_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Project'),
        ),
        migrations.AddField(
            model_name='pbi',
            name='sprint_number',
            field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='application.Sprint'),
        ),
        migrations.CreateModel(
            name='Notification',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('messages', models.TextField(default=' ')),
                ('project_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.Project')),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='application.User')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('application', '0019_auto_20201030_0135'),
    ]

    operations = [
        migrations.AddField(
            model_name='application',
            name='additional_accommodations',
            field=models.TextField(blank=True, max_length=500, verbose_name='Do you require any special accommodations at the event?'),
        ),
        migrations.AddField(
            model_name='application',
            name='agree_to_coc',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None),
        ),
        migrations.AddField(
            model_name='application',
            name='birthday',
            field=models.CharField(max_length=255, null=True, verbose_name='birth day'),
        ),
        migrations.AddField(
            model_name='application',
            name='confirmation_deadline',
            field=models.DateTimeField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='dietary_restrictions',
            field=models.ManyToManyField(blank=True, to='application.DietaryRestriction'),
        ),
        migrations.AddField(
            model_name='application',
            name='dietary_restrictions_other',
            field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Self-describe'),
        ),
        migrations.AddField(
            model_name='application',
            name='email',
            field=models.CharField(max_length=255, null=True, verbose_name='email address'),
        ),
        migrations.AddField(
            model_name='application',
            name='gender',
            field=models.CharField(choices=[('NA', 'Prefer not to answer'), ('M', 'Male'), ('F', 'Female'), ('NB', 'Non-binary'), ('X', 'Other')], default='NA', max_length=2, verbose_name="What's your gender?"),
        ),
        migrations.AddField(
            model_name='application',
            name='gender_other',
            field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Other'),
        ),
        migrations.AddField(
            model_name='application',
            name='graduation_year',
            field=models.IntegerField(choices=[('N', 'N/A'), ('2020', '2020'), ('2021', '2021'), ('2022', '2022'), ('2023', '2023')], null=True, verbose_name='What is your anticipated graduation year?'),
        ),
        migrations.AddField(
            model_name='application',
            name='interested_in_hacklahoma',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None, verbose_name='Are you interesetd in joining the Hacklahoma 2022 team?'),
        ),
        migrations.AddField(
            model_name='application',
            name='is_adult',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None, help_text='Please note that freshmen under 18 must be accompanied by an adult or prove that they go to Texas A&M.', verbose_name='Please confirm you are 18 or older.'),
        ),
        migrations.AddField(
            model_name='application',
            name='level_of_study',
            field=models.CharField(choices=[('H', 'High school'), ('T', 'Tech school'), ('U', 'Undergrad univsity'), ('G', 'Graduate university')], default='NA', max_length=2, verbose_name='What is your most current level of study?'),
        ),
        migrations.AddField(
            model_name='application',
            name='liability_waiver',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None, verbose_name='Liability Waiver'),
        ),
        migrations.AddField(
            model_name='application',
            name='major',
            field=models.CharField(max_length=255, null=True, verbose_name="What's your major?"),
        ),
        migrations.AddField(
            model_name='application',
            name='mlh_authorize',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None, verbose_name='I authorize Major League Hacking to send me occasional messages about hackathons.'),
        ),
        migrations.AddField(
            model_name='application',
            name='notes',
            field=models.TextField(blank=True, max_length=300, verbose_name='Anything else you would like us to know?'),
        ),
        migrations.AddField(
            model_name='application',
            name='num_hackathons_attended',
            field=models.IntegerField(null=True, verbose_name='How many hackathons have you attended?'),
        ),
        migrations.AddField(
            model_name='application',
            name='phone_number',
            field=models.IntegerField(null=True, verbose_name='phone number'),
        ),
        migrations.AddField(
            model_name='application',
            name='photo_release',
            field=models.BooleanField(choices=[(True, 'Agree')], default=None, verbose_name='I agree to have '),
        ),
        migrations.AddField(
            model_name='application',
            name='pronouns',
            field=models.CharField(default='', max_length=255, verbose_name='pronouns'),
        ),
        migrations.AddField(
            model_name='application',
            name='question1',
            field=models.TextField(max_length=500, null=True, verbose_name='Why is the history of computing so important?'),
        ),
        migrations.AddField(
            model_name='application',
            name='question2',
            field=models.TextField(max_length=500, null=True, verbose_name='What workshops do you want to see at Hacklahoma?'),
        ),
        migrations.AddField(
            model_name='application',
            name='question3',
            field=models.TextField(max_length=500, null=True, verbose_name='What kind of prizes do you want to see at Hacklahoma?'),
        ),
        migrations.AddField(
            model_name='application',
            name='race',
            field=multiselectfield.db.fields.MultiSelectField(choices=[('AI', 'American Indian or Alaskan Native'), ('AS', 'Asian'), ('BL', 'Black or African-American'), ('HI', 'Hispanic or Latino'), ('NH', 'Native Hawaiian or other Pacific Islander'), ('WH', 'White'), ('NA', 'Prefer not to answer'), ('O', 'Other')], max_length=41, null=True, verbose_name='What race(s) do you identify with?'),
        ),
        migrations.AddField(
            model_name='application',
            name='race_other',
            field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Other'),
        ),
        migrations.AddField(
            model_name='application',
            name='resume',
            field=models.FileField(help_text='Companies will use this resume to offer interviews for internships and full-time positions.', null=True, upload_to=application.models.uuid_generator, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'])], verbose_name='Upload your resume (PDF only)'),
        ),
        migrations.AddField(
            model_name='application',
            name='school',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='application.School', verbose_name='What school do you go to?'),
        ),
        migrations.AddField(
            model_name='application',
            name='school_other',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='application',
            name='shirt_size',
            field=models.CharField(choices=[('XXS', 'Unisex XXS'), ('XS', 'Unisex XS'), ('S', 'Unisex S'), ('M', 'Unisex M'), ('L', 'Unisex L'), ('XL', 'Unisex XL'), ('XXL', 'Unisex XXL')], max_length=4, null=True, verbose_name='What size shirt do you wear?'),
        ),
        migrations.AddField(
            model_name='application',
            name='social_links',
            field=models.CharField(blank=True, max_length=200, verbose_name="Point us to any social links you'd like us to look at while considering your application"),
        ),
        migrations.AddField(
            model_name='application',
            name='transport_needed',
            field=models.CharField(choices=[('D', 'Driving'), ('OB', 'Bus (Greyhound, Megabus, etc.)'), ('F', 'Flying'), ('P', 'Public Transportation'), ('M', 'Walking/Biking')], max_length=11, null=True, verbose_name='How will you be getting to the event?'),
        ),
        migrations.AddField(
            model_name='application',
            name='travel_reimbursement',
            field=models.BooleanField(default=False, help_text='Travel reimbursement is only provided if you stay the whole time and submit a project.', verbose_name="I'd like to apply for travel reimbursement"),
        ),
        migrations.AddField(
            model_name='application',
            name='where_did_you_hear',
            field=multiselectfield.db.fields.MultiSelectField(choices=[('SM', 'Social media'), ('FR', 'Friend'), ('EM', 'Email'), ('FL', 'Flyer'), ('IC', 'In class'), ('ML', 'Major League Hacking'), ('O', 'Other')], max_length=41, null=True, verbose_name='How did you hear about Hacklahoma?'),
        ),
        migrations.AddField(
            model_name='application',
            name='where_did_you_hear_other',
            field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Other'),
        ),
    ]
Exemplo n.º 9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('hacker', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Application',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('phone', models.CharField(max_length=20, null=True)),
                ('gender',
                 models.CharField(choices=[('M', 'Masculino'),
                                           ('F', 'Feminino'), ('O', 'Outro'),
                                           ('NA', 'Prefiro não dizer')],
                                  max_length=2)),
                ('age',
                 models.IntegerField(validators=[
                     django.core.validators.MinValueValidator(
                         5, 'A idade mínima é 5 anos.')
                 ])),
                ('enroll_year',
                 models.IntegerField(
                     null=True,
                     validators=[
                         django.core.validators.MinValueValidator(
                             1900, 'Hmm, como?'),
                         django.core.validators.MaxValueValidator(
                             2020, 'Hmm, como?')
                     ])),
                ('cv_type',
                 models.CharField(blank=True,
                                  choices=[('LI', 'LinkedIn'),
                                           ('GH', 'GitHub'), ('WS', 'Website'),
                                           ('UP', 'Upload'), ('OT', 'Outro')],
                                  max_length=3,
                                  null=True)),
                ('cv', models.CharField(blank=True, max_length=300,
                                        null=True)),
                ('cv2_type',
                 models.CharField(blank=True,
                                  choices=[('LI', 'LinkedIn'),
                                           ('GH', 'GitHub'), ('WS', 'Website'),
                                           ('OT', 'Outro')],
                                  max_length=3,
                                  null=True)),
                ('cv2', models.CharField(blank=True, max_length=300,
                                         null=True)),
                ('hacker',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='hacker.Hacker')),
                ('can_move', models.BooleanField(blank=True, default=False)),
                ('city', models.CharField(blank=True,
                                          max_length=200,
                                          null=True)),
                ('country',
                 models.CharField(
                     blank=True,
                     choices=[
                         ['Afeganistão', 'Afeganistão'],
                         ['África do Sul',
                          'África do Sul'],
                         ['Albânia', 'Albânia'], ['Alemanha', 'Alemanha'],
                         ['Andorra', 'Andorra'], ['Angola', 'Angola'],
                         ['Anguilla',
                          'Anguilla'], ['Antártida', 'Antártida'
                                        ],
                         ['Antígua & Barbuda', 'Antígua & Barbuda'],
                         ['Arábia Saudita', 'Arábia Saudita'],
                         ['Argélia', 'Argélia'], ['Argentina', 'Argentina'],
                         ['Armênia', 'Armênia'
                          ], ['Aruba',
                              'Aruba'], ['Austrália', 'Austrália'],
                         ['Áustria', 'Áustria'
                          ],
                         ['Azerbaijão', 'Azerbaijão'], ['Bahamas', 'Bahamas'],
                         ['Bahrein', 'Bahrein'], ['Bangladesh', 'Bangladesh'],
                         ['Barbados', 'Barbados'
                          ], ['Belarus', 'Belarus'], ['Bélgica', 'Bélgica'],
                         ['Belize', 'Belize'
                          ],
                         ['Benin',
                          'Benin'], ['Bermudas', 'Bermudas'
                                     ], ['Bolívia', 'Bolívia'
                                         ],
                         [
                             'Bonaire, St. Eustatius & Saba',
                             'Bonaire, St. Eustatius & Saba'
                         ], ['Bósnia-Herzegovina', 'Bósnia-Herzegovina'],
                         ['Botsuana',
                          'Botsuana'], ['Brasil', 'Brasil'],
                         ['Brunei', 'Brunei'], ['Bulgária', 'Bulgária'],
                         ['Burkina Faso',
                          'Burkina Faso'], ['Burundi', 'Burundi'],
                         ['Butão', 'Butão'
                          ], ['Cabo Verde', 'Cabo Verde'],
                         [
                             'Camarões',
                             'Camarões'
                         ], ['Camboja', 'Camboja'
                             ], ['Canadá',
                                 'Canadá'], ['Cazaquistão', 'Cazaquistão'],
                         ['Chade',
                          'Chade'], ['Chile',
                                     'Chile'],
                         ['China',
                          'China'], ['Chipre',
                                     'Chipre'], ['Cingapura', 'Cingapura'],
                         ['Colômbia',
                          'Colômbia'], ['Congo', 'Congo'
                                        ],
                         ['Coréia do Norte', 'Coréia do Norte'],
                         ['Coréia do Sul',
                          'Coréia do Sul'],
                         ['Costa do Marfim', 'Costa do Marfim'],
                         ['Costa Rica', 'Costa Rica'], ['Croácia', 'Croácia'],
                         ['Cuba',
                          'Cuba'], ['Curaçao', 'Curaçao'
                                    ],
                         ['Dinamarca',
                          'Dinamarca'], ['Djibuti', 'Djibuti'
                                         ], ['Dominica', 'Dominica'],
                         ['Egito',
                          'Egito'], ['El Salvador', 'El Salvador'],
                         ['Emirados Árabes Unidos',
                          'Emirados Árabes Unidos'], ['Equador', 'Equador'],
                         ['Eritréia',
                          'Eritréia'], ['Eslováquia', 'Eslováquia'
                                        ], ['Eslovênia', 'Eslovênia'],
                         ['Espanha', 'Espanha'
                          ], ['Estados Unidos',
                              'Estados Unidos'], ['Estônia', 'Estônia'
                                                  ], ['Etiópia', 'Etiópia'],
                         ['Federação Russa',
                          'Federação Russa'], ['Fiji', 'Fiji'],
                         ['Filipinas',
                          'Filipinas'], ['Finlândia', 'Finlândia'],
                         ['França', 'França'], ['Gabão', 'Gabão'
                                                ], ['Gâmbia', 'Gâmbia'],
                         ['Gana',
                          'Gana'], ['Geórgia', 'Geórgia'
                                    ], ['Gibraltar', 'Gibraltar'
                                        ],
                         [
                             'Grã-Bretanha (Reino Unido)',
                             'Grã-Bretanha (Reino Unido)'
                         ], ['Granada', 'Granada'], ['Grécia', 'Grécia'],
                         ['Groelândia', 'Groelândia'],
                         ['Guadalupe',
                          'Guadalupe'],
                         [
                             'Guam (Território dos Estados Unidos)',
                             'Guam (Território dos Estados Unidos)'
                         ], ['Guatemala', 'Guatemala'],
                         ['G|Guernsey', 'G|Guernsey'], ['Guiana', 'Guiana'],
                         ['Guiana Francesa', 'Guiana Francesa'],
                         ['Guiné',
                          'Guiné'], ['Guiné Equatorial', 'Guiné Equatorial'
                                     ], ['Guiné-Bissau',
                                         'Guiné-Bissau'], ['Haiti', 'Haiti'],
                         ['Holanda', 'Holanda'
                          ], ['Honduras',
                              'Honduras'], ['Hong-Kong', 'Hong-Kong'],
                         ['Hungria', 'Hungria'
                          ], ['Iêmen',
                              'Iêmen'],
                         [
                             'Ilha Bouvet (Território da Noruega)',
                             'Ilha Bouvet (Território da Noruega)'
                         ], ['Ilha do Homem', 'Ilha do Homem'],
                         ['Ilha Natal', 'Ilha Natal'],
                         ['Ilha Pitcairn', 'Ilha Pitcairn'],
                         ['Ilha Reunião',
                          'Ilha Reunião'], ['Ilhas Aland', 'Ilhas Aland'],
                         ['Ilhas Cayman',
                          'Ilhas Cayman'], ['Ilhas Cocos', 'Ilhas Cocos'],
                         ['Ilhas Comores',
                          'Ilhas Comores'], ['Ilhas Cook', 'Ilhas Cook'],
                         ['Ilhas Faroes',
                          'Ilhas Faroes'],
                         [
                             'Ilhas Falkland (Malvinas)',
                             'Ilhas Falkland (Malvinas)'
                         ],
                         [
                             'Ilhas Geórgia do Sul e Sandwich do Sul',
                             'Ilhas Geórgia do Sul e Sandwich do Sul'
                         ],
                         [
                             'Ilhas Heard e McDonald (Território da Austrália)',
                             'Ilhas Heard e McDonald (Território da Austrália)'
                         ],
                         [
                             'Ilhas Marianas do Norte',
                             'Ilhas Marianas do Norte'
                         ], ['Ilhas Marshall', 'Ilhas Marshall'],
                         [
                             'Ilhas Menores dos Estados Unidos',
                             'Ilhas Menores dos Estados Unidos'
                         ], ['Ilhas Norfolk', 'Ilhas Norfolk'],
                         ['Ilhas Seychelles', 'Ilhas Seychelles'],
                         ['Ilhas Solomão', 'Ilhas Solomão'],
                         [
                             'Ilhas Svalbard & Jan Mayen',
                             'Ilhas Svalbard & Jan Mayen'
                         ], ['Ilhas Tokelau', 'Ilhas Tokelau'],
                         ['Ilhas Turks e Caicos', 'Ilhas Turks e Caicos'],
                         [
                             'Ilhas Virgens (Estados Unidos)',
                             'Ilhas Virgens (Estados Unidos)'
                         ],
                         [
                             'Ilhas Virgens (Inglaterra)',
                             'Ilhas Virgens (Inglaterra)'
                         ], ['Ilhas Wallis & Futuna', 'Ilhas Wallis & Futuna'],
                         ['Índia', 'Índia'], ['Indonésia', 'Indonésia'],
                         ['Irã', 'Irã'], ['Iraque', 'Iraque'],
                         ['Irlanda', 'Irlanda'], ['Islândia', 'Islândia'],
                         ['Israel', 'Israel'], ['Itália', 'Itália'],
                         ['Jamaica', 'Jamaica'], ['Japão', 'Japão'],
                         ['Jersey', 'Jersey'], ['Jordânia', 'Jordânia'],
                         ['Kiribati', 'Kiribati'], ['Kuait', 'Kuait'],
                         ['Laos', 'Laos'], ['Látvia', 'Látvia'],
                         ['Lesoto', 'Lesoto'], ['Líbano', 'Líbano'],
                         ['Libéria', 'Libéria'], ['Líbia', 'Líbia'],
                         ['Liechtenstein', 'Liechtenstein'],
                         ['Lituânia',
                          'Lituânia'], ['Luxemburgo', 'Luxemburgo'],
                         ['Macau', 'Macau'],
                         [
                             'Macedônia (República Yugoslava)',
                             'Macedônia (República Yugoslava)'
                         ], ['Madagascar',
                             'Madagascar'], ['Malásia', 'Malásia'],
                         ['Malaui', 'Malaui'], ['Maldivas', 'Maldivas'],
                         ['Mali', 'Mali'], ['Malta', 'Malta'],
                         ['Marrocos', 'Marrocos'], ['Martinica', 'Martinica'],
                         ['Maurício',
                          'Maurício'], ['Mauritânia', 'Mauritânia'],
                         ['Mayotte', 'Mayotte'], ['México', 'México'],
                         ['Micronésia', 'Micronésia'],
                         ['Moçambique', 'Moçambique'], ['Moldova', 'Moldova'],
                         ['Mônaco', 'Mônaco'], ['Mongólia', 'Mongólia'],
                         ['Montenegro', 'Montenegro'],
                         ['Montserrat', 'Montserrat'], ['Myanmar', 'Myanmar'],
                         ['Namíbia', 'Namíbia'], ['Nauru', 'Nauru'],
                         ['Nepal', 'Nepal'], ['Nicarágua', 'Nicarágua'],
                         ['Níger', 'Níger'], ['Nigéria', 'Nigéria'],
                         ['Niue', 'Niue'], ['Noruega', 'Noruega'],
                         ['Nova Caledônia', 'Nova Caledônia'],
                         ['Nova Zelândia', 'Nova Zelândia'], ['Omã', 'Omã'],
                         ['Palau', 'Palau'], ['Panamá', 'Panamá'],
                         ['Papua-Nova Guiné', 'Papua-Nova Guiné'],
                         ['Paquistão', 'Paquistão'], ['Paraguai', 'Paraguai'],
                         ['Peru', 'Peru'],
                         ['Polinésia Francesa', 'Polinésia Francesa'],
                         ['Polônia', 'Polônia'], ['Porto Rico', 'Porto Rico'],
                         ['Portugal', 'Portugal'], ['Qatar', 'Qatar'],
                         ['Quênia', 'Quênia'], ['Quirguistão', 'Quirguistão'],
                         [
                             'República Centro-Africana',
                             'República Centro-Africana'
                         ],
                         [
                             'República Democrática do Congo',
                             'República Democrática do Congo'
                         ], ['República Dominicana', 'República Dominicana'],
                         ['República Tcheca', 'República Tcheca'],
                         ['Romênia', 'Romênia'], ['Ruanda', 'Ruanda'],
                         ['Saara Ocidental', 'Saara Ocidental'],
                         [
                             'Saint Vincent e Granadinas',
                             'Saint Vincent e Granadinas'
                         ], ['Samoa Ocidental', 'Samoa Ocidental'],
                         ['Samoa Ocidental', 'Samoa Ocidental'],
                         ['San Marino', 'San Marino'],
                         ['Santa Helena', 'Santa Helena'],
                         ['Santa Lúcia', 'Santa Lúcia'],
                         ['São Bartolomeu', 'São Bartolomeu'],
                         ['São Cristóvão e Névis', 'São Cristóvão e Névis'],
                         ['San Martin', 'San Martin'],
                         ['São Tomé e Príncipe', 'São Tomé e Príncipe'],
                         ['Senegal',
                          'Senegal'], ['Sierra Leoa', 'Sierra Leoa'],
                         ['Sérvia', 'Sérvia'], ['Síria', 'Síria'],
                         ['Somália', 'Somália'], ['Sri Lanka', 'Sri Lanka'],
                         ['St. Maarten', 'St. Maarten'],
                         ['St.Pierre & Miquelon', 'St.Pierre & Miquelon'],
                         ['Suazilândia', 'Suazilândia'], ['Sudão', 'Sudão'],
                         ['Sudão do Sul',
                          'Sudão do Sul'], ['Suécia', 'Suécia'],
                         ['Suíça', 'Suíça'], ['Suriname', 'Suriname'],
                         ['Tadjiquistão', 'Tadjiquistão'],
                         ['Tailândia', 'Tailândia'], ['Taiwan', 'Taiwan'],
                         ['Tanzânia', 'Tanzânia'],
                         [
                             'Território Britânico do Oceano Índico',
                             'Território Britânico do Oceano Índico'
                         ],
                         [
                             'Territórios do Sul da França',
                             'Territórios do Sul da França'
                         ],
                         [
                             'Territórios Palestinos Ocupados',
                             'Territórios Palestinos Ocupados'
                         ], ['Timor Leste', 'Timor Leste'], ['Togo', 'Togo'],
                         ['Tonga', 'Tonga'],
                         ['Trinidad & Tobago', 'Trinidad & Tobago'],
                         ['Tunísia', 'Tunísia'],
                         ['Turcomenistão', 'Turcomenistão'],
                         ['Turquia', 'Turquia'], ['Tuvalu', 'Tuvalu'],
                         ['Ucrânia', 'Ucrânia'], ['Uganda', 'Uganda'],
                         ['Uruguai',
                          'Uruguai'], ['Uzbequistão', 'Uzbequistão'],
                         ['Vanuatu', 'Vanuatu'], ['Vaticano', 'Vaticano'],
                         ['Venezuela', 'Venezuela'], ['Vietnã', 'Vietnã'],
                         ['Zâmbia', 'Zâmbia'], ['Zimbábue', 'Zimbábue']
                     ],
                     max_length=200,
                     null=True)),
                ('course',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('cpf',
                 models.CharField(default='',
                                  max_length=20,
                                  validators=[
                                      application.models.CPFValidator(
                                          0, 'CPF inválido')
                                  ])),
                ('dream_company',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('education', models.CharField(default='', max_length=20)),
                ('english_level',
                 models.CharField(blank=True,
                                  choices=[('basic', 'Básico'),
                                           ('intermediate', 'Intermediário'),
                                           ('advanced', 'Avançado')],
                                  max_length=20,
                                  null=True)),
                ('excel_level',
                 models.CharField(blank=True,
                                  choices=[('basic', 'Básico'),
                                           ('intermediate', 'Intermediário'),
                                           ('advanced', 'Avançado')],
                                  max_length=20,
                                  null=True)),
                ('extra_courses', models.TextField(blank=True, null=True)),
                ('first_timer', models.BooleanField(default=True)),
                ('interests', models.CharField(default='', max_length=200)),
                ('other_languages',
                 models.CharField(blank=True, max_length=200, null=True)),
                ('referrer', models.CharField(default='', max_length=100)),
                ('school',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('state',
                 models.CharField(blank=True, max_length=200, null=True)),
                ('time_slots',
                 models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
    ]
Exemplo n.º 10
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Application',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('email', models.EmailField(max_length=254)),
                ('mobile_number', models.CharField(max_length=13)),
                ('id_number', models.CharField(max_length=10)),
                ('first_name', models.CharField(max_length=32)),
                ('last_name', models.CharField(max_length=32)),
                ('birth_date', models.DateField()),
                ('gender',
                 models.CharField(choices=[('Male', 'Male'),
                                           ('Female', 'Female')],
                                  max_length=10)),
                ('subcounty',
                 models.CharField(choices=[('Mvita', 'Mvita'),
                                           ('Kisauni', 'Kisauni'),
                                           ('Nyali', 'Nyali'),
                                           ('Changamwe', 'Changamwe'),
                                           ('Jomvu', 'Jomvu'),
                                           ('Likoni', 'Likoni')],
                                  max_length=32)),
                ('project_name', models.CharField(max_length=128)),
                ('project_description', models.CharField(max_length=1500)),
                ('project_sector',
                 models.CharField(choices=[
                     ('Technology', 'Technology and Innovation'),
                     ('Art', 'Creativity and Art'),
                     ('Healthcare', 'Promotion of Health'),
                     ('Sports', 'Sports'), ('Environment', 'Environment'),
                     ('Community', 'Community')
                 ],
                                  max_length=32)),
                ('people_impacted', models.IntegerField()),
                ('application_no',
                 models.CharField(
                     blank=True,
                     default=application.models.increment_application_number,
                     editable=False,
                     max_length=7,
                     null=True)),
                ('status',
                 models.CharField(choices=[('PENDING', 'Pending Approval'),
                                           ('APPROVED', 'Approved'),
                                           ('DENIED', 'Denied'),
                                           ('CANCELLED', 'Cancelled')],
                                  default='PENDING',
                                  max_length=32)),
                ('application_date', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['-application_no'],
            },
        ),
        migrations.AlterUniqueTogether(
            name='application',
            unique_together={('mobile_number', 'id_number', 'application_no')},
        ),
    ]
Exemplo n.º 11
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('email',
                 models.EmailField(max_length=254,
                                   unique=True,
                                   verbose_name='email address')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=30,
                                  verbose_name='first name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=30,
                                  verbose_name='last name')),
                ('date_joined',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='date joined')),
                ('is_active',
                 models.BooleanField(default=True, verbose_name='active')),
                ('position',
                 models.IntegerField(choices=[(1, 'Developer'), (
                     2, 'Team Lead'), (3,
                                       'Project Manager'), (4,
                                                            'CEO'), (5,
                                                                     'CTO')])),
                ('hour_salary', models.FloatField()),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
                ('user_permissions',
                 models.ManyToManyField(
                     blank=True,
                     help_text='Specific permissions for this user.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Permission',
                     verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
            managers=[
                ('objects', application.models.UserManager()),
            ],
        ),
    ]
Exemplo n.º 12
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Challenges',
            fields=[
                ('challenge_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('is_visible', models.BooleanField(default=False)),
                ('title', models.TextField()),
                ('limitDate', models.DateTimeField(blank=True, null=True)),
                ('description', models.TextField()),
                ('nbSubmit', models.IntegerField(default=0)),
                ('nbStudent', models.IntegerField(default=0)),
                ('inputExt', models.TextField()),
                ('inputParam', models.TextField()),
                ('command', models.TextField()),
                ('scriptFile',
                 models.FileField(upload_to=application.models.script_path)),
                ('args', djongo.models.fields.ListField(default=[])),
                ('outputs', djongo.models.fields.ListField(default=[])),
                ('scoreKeys', djongo.models.fields.ListField(default=[])),
                ('enable_edit_group', models.BooleanField(default=False)),
                ('enable_delete_submission',
                 models.BooleanField(default=False)),
            ],
            options={
                'db_table': 'challenges',
            },
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('course_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('description', models.TextField()),
                ('freqSubmit', models.IntegerField(default=0)),
                ('nbSubmit', models.IntegerField(default=-1)),
                ('nbStudent', models.IntegerField(default=-1)),
                ('owner',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'course',
            },
        ),
        migrations.CreateModel(
            name='TruthFile',
            fields=[
                ('file_id', models.AutoField(primary_key=True,
                                             serialize=False)),
                ('file',
                 models.FileField(default='',
                                  upload_to=application.models.truth_path)),
                ('param', models.TextField()),
                ('challenge',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Challenges')),
                ('course',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Course')),
            ],
            options={
                'db_table': 'truthFile',
            },
        ),
        migrations.CreateModel(
            name='Submission',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date_submit',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('score', djongo.models.fields.ListField(default=[])),
                ('input_file',
                 models.FileField(
                     upload_to=application.models.directory_path)),
                ('status',
                 models.CharField(choices=[('PENDING', 'PENDING'),
                                           ('SUCCESS', 'SUCCESS'),
                                           ('FAIL', 'FAIL')],
                                  default='PENDING',
                                  max_length=10)),
                ('tags', djongo.models.fields.ListField(default=[])),
                ('challenge',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Challenges')),
                ('user',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'submission',
            },
        ),
        migrations.CreateModel(
            name='Output',
            fields=[
                ('file_id', models.AutoField(primary_key=True,
                                             serialize=False)),
                ('file',
                 models.FileField(upload_to=application.models.outputs_path)),
                ('ext', models.TextField()),
                ('param', models.TextField()),
                ('course',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Course')),
                ('submission',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Submission')),
            ],
            options={
                'db_table': 'output',
            },
        ),
        migrations.CreateModel(
            name='Management',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('is_course_admin', models.BooleanField(default=False)),
                ('is_group_admin', models.BooleanField(default=False)),
                ('course',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Course')),
                ('user',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'management',
            },
        ),
        migrations.CreateModel(
            name='Groups',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('group_id', models.IntegerField()),
                ('owner', models.BooleanField(default=False)),
                ('challenge',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Challenges')),
                ('user',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'groups',
            },
        ),
        migrations.CreateModel(
            name='Enrollment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('course',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Course')),
                ('user',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'enrollment',
            },
        ),
        migrations.CreateModel(
            name='Dataset',
            fields=[
                ('file_id', models.AutoField(primary_key=True,
                                             serialize=False)),
                ('file',
                 models.FileField(upload_to=application.models.dataset_path)),
                ('challenge',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Challenges')),
                ('course',
                 models.ForeignKey(error_messages={'invalide': "n'éxiste pas"},
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='application.Course')),
            ],
            options={
                'db_table': 'dataset',
            },
        ),
        migrations.AddField(
            model_name='challenges',
            name='course',
            field=models.ForeignKey(
                error_messages={'invalide': "n'éxiste pas"},
                on_delete=django.db.models.deletion.CASCADE,
                to='application.Course'),
        ),
        migrations.AddConstraint(
            model_name='management',
            constraint=models.UniqueConstraint(fields=('user', 'course'),
                                               name='UNIQUE_MANAGEMENT_ENTRY'),
        ),
        migrations.AddConstraint(
            model_name='groups',
            constraint=models.UniqueConstraint(fields=('user', 'challenge'),
                                               name='UNIQUE_GROUP_ENTRY'),
        ),
        migrations.AddConstraint(
            model_name='enrollment',
            constraint=models.UniqueConstraint(fields=('user', 'course'),
                                               name='UNIQUE_ENROLLMENT_ENTRY'),
        ),
        migrations.AlterUniqueTogether(
            name='challenges',
            unique_together={('title', 'course'), ('challenge_id', 'course')},
        ),
    ]