# Generated by Django 5.0 on 2024-02-11 20:29

import django.db.models.deletion
import django.utils.timezone
import django_enum.fields
import phonenumber_field.modelfields
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='AddressModel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('address_1', models.CharField(max_length=128)),
                ('address_2', models.CharField(blank=True, max_length=128)),
                ('city', models.CharField(max_length=64)),
                ('state', models.CharField(max_length=2)),
                ('zip_code', models.CharField(max_length=5)),
            ],
        ),
        migrations.CreateModel(
            name='Contract',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField()),
                ('contract_type', django_enum.fields.EnumCharField(choices=[('FFP', 'FIRM_FIX_PRICED'), ('MAX', 'MAX_NUM_CONTRACT_TYPES')], max_length=3)),
                ('name', models.CharField(max_length=100)),
                ('proposed_amount', models.FloatField(default=0.0)),
                ('baseline_amount', models.FloatField(default=0.0)),
                ('funded_amount', models.FloatField(default=0.0)),
                ('baseline_start', models.DateField(default=None, null=True)),
                ('baseline_end', models.DateField(default=None, null=True)),
                ('linkedContracts', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='financial.contract')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ChargeNumber',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField()),
                ('charge_number_type', django_enum.fields.EnumCharField(choices=[('LOE', 'LEVEL_OF_EFFORT'), ('QBD', 'QBD'), ('0_100', 'ZERO_ONE_HUNDRED'), ('50_50', 'FIFTY_FIFTY'), ('MAX', 'MAX_NUM_TASK_TYPES')], max_length=5)),
                ('amount', models.FloatField(default=0.0)),
                ('percent_complete', models.FloatField(default=0.0)),
                ('startDate', models.DateField(default=None, null=True)),
                ('endDate', models.DateField(default=None, null=True)),
                ('contract', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='financial.contract')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Employee',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField()),
                ('phoneNumber', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None, unique=True)),
                ('slary', models.FloatField(default=0.0)),
                ('manager', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='manager_employee', to='financial.employee')),
                ('primaryAddress', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='primary_address_employee', to='financial.addressmodel')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('workAddress', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='work_address_employee', to='financial.addressmodel')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TimeCard',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField()),
                ('startDate', models.DateField(default=None, null=True)),
                ('endDate', models.DateField(default=None, null=True)),
                ('approvedDate', models.DateField(default=None, null=True)),
                ('approvalComment', models.TextField(default='', max_length=256)),
                ('approvedBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='approved_by', to='financial.employee')),
                ('employee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='employee', to='financial.employee')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TimeCardCell',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField()),
                ('date', models.DateField(default=None, null=True)),
                ('hour', models.FloatField(default=0.0)),
                ('timeCard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='financial.timecard')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
