# Generated by Django 2.2.28 on 2025-06-04 20:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('doctor', '0003_auto_20250603_1441'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('accountant', '0004_auto_20250603_1441'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExpensePaid',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField()),
                ('description', models.CharField(blank=True, max_length=255, null=True)),
                ('cost_dollar', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('cost_dinar', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('currency_type', models.CharField(choices=[('dollar', 'dollar'), ('dinar', 'dinar')], default='dollar', max_length=20)),
                ('expense_type', models.CharField(choices=[('doctor', 'doctor'), ('technician', 'technician')], default='doctor', max_length=20)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
                ('doctor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='doctor.Doctor')),
                ('technician', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='doctor.Technician')),
            ],
        ),
    ]
