# Generated by Django 4.2.2 on 2023-06-25 12:04

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Task',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('description', models.TextField()),
                ('price_from', models.IntegerField(validators=[django.core.validators.MinValueValidator(0)])),
                ('price_to', models.IntegerField(validators=[django.core.validators.MinValueValidator(0)])),
                ('needed_information', models.JSONField()),
            ],
        ),
        migrations.CreateModel(
            name='Request',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('description', models.TextField()),
                ('price_from', models.IntegerField(validators=[django.core.validators.MinValueValidator(0)])),
                ('price_to', models.IntegerField(validators=[django.core.validators.MinValueValidator(0)])),
                ('needed_information', models.JSONField()),
                ('start_in_days', models.IntegerField()),
                ('email', models.EmailField(max_length=254)),
                ('email_confirmation', models.EmailField(max_length=254)),
                ('external_id', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
                ('comment', models.TextField(blank=True, null=True)),
                ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requests', to='core.task')),
            ],
        ),
    ]
