# Generated by Django 6.0.4 on 2026-06-23 03:13

import apps.finance.models
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('finance', '0006_financesettings'),
    ]

    operations = [
        migrations.CreateModel(
            name='BankAccount',
            fields=[
                ('id', models.UUIDField(default=apps.finance.models.uuid7, editable=False, primary_key=True, serialize=False)),
                ('label', models.CharField(blank=True, help_text="Optional nickname, e.g. 'IDR Operations'.", max_length=100)),
                ('bank_name', models.CharField(help_text='e.g. Bank Mandiri.', max_length=150)),
                ('account_number', models.CharField(max_length=50)),
                ('account_holder', models.CharField(blank=True, max_length=150)),
                ('branch', models.CharField(blank=True, max_length=150)),
                ('swift_code', models.CharField(blank=True, help_text='For international transfers.', max_length=20)),
                ('currency', models.CharField(db_index=True, default='IDR', help_text='Currency this account receives.', max_length=10)),
                ('is_default', models.BooleanField(default=False, help_text='Default for its currency.')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'bank_accounts',
                'ordering': ['currency', '-is_default', 'bank_name'],
            },
        ),
        migrations.DeleteModel(
            name='FinanceSettings',
        ),
        migrations.AddIndex(
            model_name='bankaccount',
            index=models.Index(fields=['currency', 'is_default'], name='bank_accoun_currenc_37e227_idx'),
        ),
    ]
