# Generated by Django 4.1.7 on 2023-07-12 13:09

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


class Migration(migrations.Migration):
    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("bills", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="Organization",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=64, verbose_name="Name")),
                ("address", models.CharField(max_length=64, verbose_name="Address")),
                ("phone", models.CharField(max_length=64, verbose_name="Phone")),
                ("email", models.CharField(max_length=64, verbose_name="Email")),
                ("website", models.CharField(max_length=64, verbose_name="Website")),
            ],
        ),
        migrations.AddField(
            model_name="bill",
            name="created_by",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="bill",
            name="due",
            field=models.DateField(verbose_name="Due Date"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="is_missed",
            field=models.BooleanField(default=False, verbose_name="Missed Payment"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="is_overdue",
            field=models.BooleanField(default=False, verbose_name="Overdue"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="is_paid",
            field=models.BooleanField(default=False, verbose_name="Paid"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="name",
            field=models.CharField(max_length=64, verbose_name="Name"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="paid_date",
            field=models.DateField(blank=True, null=True, verbose_name="Paid Date"),
        ),
        migrations.AlterField(
            model_name="bill",
            name="type",
            field=models.CharField(max_length=64, verbose_name="Type"),
        ),
        migrations.AddField(
            model_name="bill",
            name="organization",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to="bills.organization",
                verbose_name="Organization",
            ),
        ),
    ]
