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

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


class Migration(migrations.Migration):

    dependencies = [
        ('finance', '0004_invoice_invoiceline_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='TaxRate',
            fields=[
                ('id', models.UUIDField(default=apps.finance.models.uuid7, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(help_text='Display name, e.g. PPN, VAT, PPh 23.', max_length=100)),
                ('rate', models.DecimalField(decimal_places=3, help_text='Percentage, e.g. 11 for 11%.', max_digits=6)),
                ('is_default', models.BooleanField(default=False, help_text='Pre-selected on new invoices.')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'tax_rates',
                'ordering': ['-is_default', 'name'],
            },
        ),
    ]
