# Generated by Django 5.2.7 on 2025-10-08 07:10

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


class Migration(migrations.Migration):

    dependencies = [
        ('expence', '0002_alter_officeexpense_id'),
    ]

    operations = [
        migrations.CreateModel(
            name='PaidThroughType',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name_plural': 'Paid Through',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='ExpenceOfficeExpense',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(blank=True, null=True)),
                ('branch', models.CharField(choices=[('Head Office', 'Head Office'), ('Kozhikode', 'Kozhikode'), ('Kasaragod', 'Kasaragod'), ('Dubai', 'Dubai'), ('Qatar', 'Qatar')], default='Head Office', max_length=255)),
                ('paid_through', models.CharField(choices=[('Bank', 'Bank'), ('Cash', 'Cash'), ('UPI', 'Upi'), ('Credit Card', 'Credit Card'), ('Debit Card', 'Debit Card'), ('Wallet', 'Wallet'), ('Other', 'Other')], default='Bank', max_length=255)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
                ('vendor', models.CharField(blank=True, max_length=255, null=True)),
                ('reference_number', models.CharField(blank=True, max_length=255, null=True)),
                ('receipts', models.FileField(blank=True, null=True, upload_to='media/expences/')),
                ('notes', models.TextField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('expence_account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='expence.paidthroughtype')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
        migrations.DeleteModel(
            name='OfficeExpense',
        ),
        migrations.DeleteModel(
            name='PaidThrough',
        ),
    ]
