# Generated by Django 4.2.5 on 2024-02-23 19:57

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


class Migration(migrations.Migration):

    dependencies = [
        ('billing', '0008_alter_service_type'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='service',
            name='due_at',
        ),
        migrations.RemoveField(
            model_name='servicepayment',
            name='service',
        ),
        migrations.CreateModel(
            name='Charge',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('due_date', models.DateField()),
                ('is_paid', models.BooleanField(default=False)),
                ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.service')),
            ],
        ),
        migrations.AddField(
            model_name='servicepayment',
            name='charge',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='billing.charge'),
        ),
    ]
