# Generated by Django 5.2.7 on 2025-10-08 13:21

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


class Migration(migrations.Migration):

    dependencies = [
        ('expence', '0003_paidthroughtype_expenceofficeexpense_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='DepositAccount',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(blank=True, max_length=255, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='SenderAccount',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(blank=True, max_length=255, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='FundTransfer',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('branch', models.CharField(choices=[('Head Office', 'Head Office'), ('Kozhikode', 'Kozhikode'), ('Kasaragod', 'Kasaragod'), ('Dubai', 'Dubai'), ('Qatar', 'Qatar')], default='Head Office', max_length=255)),
                ('amount_received', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('bank_charges', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('payment_date', models.DateField(blank=True, null=True)),
                ('payment_code', models.CharField(blank=True, max_length=255, null=True)),
                ('payment_mode', models.CharField(choices=[('Bank', 'Bank'), ('Cash', 'Cash'), ('UPI', 'Upi'), ('Credit Card', 'Credit Card'), ('Debit Card', 'Debit Card'), ('Wallet', 'Wallet'), ('Other', 'Other')], default='Cash', max_length=255)),
                ('reference_number', models.CharField(blank=True, max_length=255, null=True)),
                ('payment_received_receipts', models.FileField(blank=True, null=True, upload_to='media/fund_transfer/')),
                ('notes', models.TextField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('deposit_account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='expence.depositaccount')),
                ('sender', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='expence.senderaccount')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
