# Generated by Django 2.1.11 on 2019-12-10 04:12

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='CareCase',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.DateTimeField(verbose_name='service time')),
                ('note', models.TextField(blank=True, null=True, verbose_name='note')),
                ('provider_feedback', models.TextField(blank=True, null=True, verbose_name='provider feedback')),
                ('taker_feedback', models.TextField(blank=True, null=True, verbose_name='taker feedback')),
                ('star', models.IntegerField(blank=True, default=5.0, verbose_name='star')),
                ('status', models.IntegerField(default=0, verbose_name='status')),
                ('provider', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='provider_cases', to=settings.AUTH_USER_MODEL)),
                ('taker', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='taker_cases', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='CareInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30, verbose_name='care name')),
                ('price', models.IntegerField(default=1, verbose_name='price')),
            ],
        ),
        migrations.CreateModel(
            name='CareService',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('checked', models.BooleanField(blank=True, default=False, verbose_name='checked')),
                ('care', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='carecases.CareInfo')),
                ('case', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='services', to='carecases.CareCase')),
            ],
        ),
    ]
