# Generated by Django 5.2.19 on 2026-12-02 10:43

import django.core.serializers.json
import django.db.models.deletion
import uuid
from decimal import Decimal
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0010_voucherregisterviewconfig_and_more'),
        ('party_hub', '0002_customeraddress_country_customeraddress_district_and_more'),
        ('projects', '0002_dailysitereport_projectactivity_projectadvance_and_more'),
        ('tenancy', '0003_taxconfig_calculation_rule_taxconfig_category_and_more'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='voucherline',
            name='bill_ref',
            field=models.CharField(blank=True, max_length=64),
        ),
        migrations.AddField(
            model_name='voucherline',
            name='due_date',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.CreateModel(
            name='OpeningBalanceAuditEvent',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('action', models.CharField(db_index=True, max_length=48)),
                ('entity_type', models.CharField(max_length=48)),
                ('entity_id', models.CharField(max_length=64)),
                ('previous_state', models.JSONField(blank=True, encoder=django.core.serializers.json.DjangoJSONEncoder, null=True)),
                ('new_state', models.JSONField(blank=True, encoder=django.core.serializers.json.DjangoJSONEncoder, null=True)),
                ('notes', models.CharField(blank=True, max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('actor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
            ],
            options={
                'db_table': 'ob_audit_events',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceImport',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('batch_name', models.CharField(max_length=150)),
                ('total_rows', models.PositiveIntegerField(default=0)),
                ('valid_rows', models.PositiveIntegerField(default=0)),
                ('error_rows', models.PositiveIntegerField(default=0)),
                ('status', models.CharField(default='VALIDATED', max_length=24)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tenancy.fiscalyear')),
                ('uploaded_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'ob_imports',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceImportLine',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('row_no', models.PositiveIntegerField()),
                ('account_code', models.CharField(max_length=32)),
                ('party_code', models.CharField(blank=True, max_length=32)),
                ('opening_date', models.DateField(blank=True, null=True)),
                ('debit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('credit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('currency', models.CharField(default='NPR', max_length=3)),
                ('reference_no', models.CharField(blank=True, max_length=64)),
                ('due_date', models.DateField(blank=True, null=True)),
                ('is_valid', models.BooleanField(default=True)),
                ('error_message', models.CharField(blank=True, max_length=255)),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rows', to='accounting.openingbalanceimport')),
            ],
            options={
                'db_table': 'ob_import_lines',
                'ordering': ['row_no'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceLine',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('line_no', models.PositiveSmallIntegerField(default=1)),
                ('opening_category', models.CharField(choices=[('BANK', 'Bank Accounts'), ('CASH', 'Cash Vaults & Cash-in-Hand'), ('DEBTORS', 'Sundry Debtors (Customer Receivables)'), ('CREDITORS', 'Sundry Creditors (Supplier Payables)'), ('LOANS', 'Term & Project Loans'), ('OD_CC', 'Overdraft & Cash Credit Facilities'), ('FIXED_ASSETS', 'Fixed Assets & Machinery'), ('ACCUM_DEPRECIATION', 'Accumulated Depreciation'), ('INVENTORY', 'Inventory / Stock'), ('EMPLOYEE_ADVANCES', 'Employee / Staff Advances'), ('SUPPLIER_ADVANCES', 'Supplier Advances (Asset)'), ('CUSTOMER_ADVANCES', 'Customer Advances (Liability)'), ('RETENTION_RECEIVABLE', 'Retention Receivable'), ('RETENTION_PAYABLE', 'Retention Payable'), ('TAX_RECEIVABLE', 'Tax / VAT / TDS Receivable'), ('TAX_PAYABLE', 'Tax / VAT / TDS Payable'), ('EQUITY', 'Equity, Capital & Retained Earnings'), ('OTHER', 'Other Subsidiary & General Ledgers')], default='OTHER', max_length=28)),
                ('direction', models.CharField(choices=[('DR', 'Debit (Dr)'), ('CR', 'Credit (Cr)')], max_length=4)),
                ('default_direction', models.CharField(choices=[('DR', 'Debit (Dr)'), ('CR', 'Credit (Cr)')], max_length=4)),
                ('is_direction_overridden', models.BooleanField(default=False)),
                ('override_reason', models.CharField(blank=True, max_length=255)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('debit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('credit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('currency', models.CharField(default='NPR', max_length=3)),
                ('exchange_rate', models.DecimalField(decimal_places=6, default=Decimal('1.000000'), max_digits=14)),
                ('base_debit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('base_credit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('reference_no', models.CharField(blank=True, max_length=64)),
                ('invoice_date', models.DateField(blank=True, null=True)),
                ('due_date', models.DateField(blank=True, null=True)),
                ('narration', models.CharField(blank=True, max_length=255)),
                ('account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='ob_lines', to='accounting.account')),
                ('adjustment_account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='ob_counterpart_lines', to='accounting.account')),
                ('party', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='ob_lines', to='accounting.party')),
                ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='projects.project')),
            ],
            options={
                'db_table': 'ob_lines',
                'ordering': ['line_no'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceReconciliation',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('reconciliation_date', models.DateField()),
                ('recon_kind', models.CharField(default='CLEARING', max_length=24)),
                ('reference_label', models.CharField(max_length=150)),
                ('book_balance', models.DecimalField(decimal_places=2, max_digits=18)),
                ('external_balance', models.DecimalField(decimal_places=2, max_digits=18)),
                ('deposits_in_transit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('unpresented_cheques', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('variance_amount', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('status', models.CharField(default='RECONCILED', max_length=20)),
                ('explanation', models.TextField(blank=True)),
                ('evidence_ref', models.CharField(blank=True, max_length=120)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tenancy.fiscalyear')),
                ('reconciled_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'ob_reconciliations',
                'ordering': ['-reconciliation_date', '-created_at'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceSubledgerItem',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('doc_kind', models.CharField(default='SALES_INVOICE', max_length=24)),
                ('invoice_ref', models.CharField(max_length=64)),
                ('invoice_date', models.DateField()),
                ('due_date', models.DateField()),
                ('original_amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('settled_before_cutoff', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('outstanding_amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('currency', models.CharField(default='NPR', max_length=3)),
                ('exchange_rate', models.DecimalField(decimal_places=6, default=Decimal('1.000000'), max_digits=14)),
                ('contract_ref', models.CharField(blank=True, max_length=64)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('ob_line', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subledger_items', to='accounting.openingbalanceline')),
                ('open_item', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='party_hub.openitem')),
                ('party', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='accounting.party')),
                ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='projects.project')),
            ],
            options={
                'db_table': 'ob_subledger_items',
                'ordering': ['invoice_date', 'invoice_ref'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceVoucher',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('ob_number', models.CharField(max_length=48)),
                ('entry_mode', models.CharField(choices=[('INDIVIDUAL', 'Individual Account Opening'), ('PARTY', 'Party / Bill-Wise Opening'), ('BULK_IMPORT', 'Bulk Excel/CSV Import'), ('COMPANY_MIGRATION', 'Full Company Migration'), ('CARRY_FORWARD', 'Year-End Carry-Forward')], default='INDIVIDUAL', max_length=24)),
                ('opening_date', models.DateField(db_index=True)),
                ('bs_date', models.CharField(blank=True, max_length=16)),
                ('currency', models.CharField(default='NPR', max_length=3)),
                ('exchange_rate', models.DecimalField(decimal_places=6, default=Decimal('1.000000'), max_digits=14)),
                ('source_entity_type', models.CharField(blank=True, max_length=48)),
                ('source_entity_id', models.CharField(blank=True, max_length=64)),
                ('is_historical_migration', models.BooleanField(default=True)),
                ('migration_override_reason', models.CharField(blank=True, max_length=255)),
                ('status', models.CharField(choices=[('DRAFT', 'Draft'), ('SUBMITTED', 'Submitted for Review'), ('REJECTED', 'Rejected'), ('APPROVED', 'Approved'), ('POSTED', 'Posted to GL'), ('REVERSED', 'Reversed'), ('RECONCILIATION_PENDING', 'Reconciliation Pending'), ('FINALIZED', 'Finalized')], db_index=True, default='DRAFT', max_length=24)),
                ('total_debit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('total_credit', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=18)),
                ('supporting_doc_ref', models.CharField(blank=True, max_length=120)),
                ('narration', models.TextField(blank=True)),
                ('idempotency_key', models.CharField(blank=True, db_index=True, max_length=120)),
                ('version', models.PositiveIntegerField(default=1)),
                ('approved_at', models.DateTimeField(blank=True, null=True)),
                ('posted_at', models.DateTimeField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('approved_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='approved_obs', to=settings.AUTH_USER_MODEL)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ob_vouchers', to='tenancy.company')),
                ('fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='ob_vouchers', to='tenancy.fiscalyear')),
                ('posted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='posted_obs', to=settings.AUTH_USER_MODEL)),
                ('prepared_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='prepared_obs', to=settings.AUTH_USER_MODEL)),
                ('voucher', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='opening_balance_record', to='accounting.voucher')),
            ],
            options={
                'db_table': 'ob_vouchers',
                'ordering': ['-opening_date', '-created_at'],
                'unique_together': {('company', 'ob_number')},
            },
        ),
        migrations.AddField(
            model_name='openingbalanceline',
            name='ob_voucher',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lines', to='accounting.openingbalancevoucher'),
        ),
        migrations.AddField(
            model_name='openingbalanceimport',
            name='ob_voucher',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='accounting.openingbalancevoucher'),
        ),
        migrations.CreateModel(
            name='OpeningBalanceCorrection',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('correction_type', models.CharField(default='AMOUNT_OR_DIRECTION', max_length=32)),
                ('original_amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('original_direction', models.CharField(choices=[('DR', 'Debit (Dr)'), ('CR', 'Credit (Cr)')], max_length=4)),
                ('corrected_amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('corrected_direction', models.CharField(choices=[('DR', 'Debit (Dr)'), ('CR', 'Credit (Cr)')], max_length=4)),
                ('reason', models.TextField()),
                ('supporting_doc_ref', models.CharField(blank=True, max_length=120)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('approved_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('original_ob_voucher', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='corrections', to='accounting.openingbalancevoucher')),
                ('replacement_ob_voucher', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='replacement_for_correction', to='accounting.openingbalancevoucher')),
                ('reversal_ob_voucher', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='reversal_for_correction', to='accounting.openingbalancevoucher')),
            ],
            options={
                'db_table': 'ob_corrections',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceApproval',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('decision', models.CharField(max_length=16)),
                ('comment', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('actor', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('ob_voucher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='approvals', to='accounting.openingbalancevoucher')),
            ],
            options={
                'db_table': 'ob_approvals',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceAdjustmentMapping',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('category', models.CharField(choices=[('BANK', 'Bank Accounts'), ('CASH', 'Cash Vaults & Cash-in-Hand'), ('DEBTORS', 'Sundry Debtors (Customer Receivables)'), ('CREDITORS', 'Sundry Creditors (Supplier Payables)'), ('LOANS', 'Term & Project Loans'), ('OD_CC', 'Overdraft & Cash Credit Facilities'), ('FIXED_ASSETS', 'Fixed Assets & Machinery'), ('ACCUM_DEPRECIATION', 'Accumulated Depreciation'), ('INVENTORY', 'Inventory / Stock'), ('EMPLOYEE_ADVANCES', 'Employee / Staff Advances'), ('SUPPLIER_ADVANCES', 'Supplier Advances (Asset)'), ('CUSTOMER_ADVANCES', 'Customer Advances (Liability)'), ('RETENTION_RECEIVABLE', 'Retention Receivable'), ('RETENTION_PAYABLE', 'Retention Payable'), ('TAX_RECEIVABLE', 'Tax / VAT / TDS Receivable'), ('TAX_PAYABLE', 'Tax / VAT / TDS Payable'), ('EQUITY', 'Equity, Capital & Retained Earnings'), ('OTHER', 'Other Subsidiary & General Ledgers')], max_length=28)),
                ('normal_balance', models.CharField(choices=[('DR', 'Debit (Dr)'), ('CR', 'Credit (Cr)')], default='CR', max_length=4)),
                ('allowed_account_groups', models.JSONField(blank=True, default=list)),
                ('require_approval', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('description', models.CharField(blank=True, max_length=255)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('adjustment_account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='ob_adjustment_mappings', to='accounting.account')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ob_mappings', to='tenancy.company')),
                ('fiscal_year', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='tenancy.fiscalyear')),
            ],
            options={
                'db_table': 'ob_adjustment_mappings',
                'ordering': ['category'],
                'unique_together': {('company', 'category')},
            },
        ),
        migrations.CreateModel(
            name='OpeningBalanceProfile',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('conversion_cutoff_date', models.DateField(help_text='Cut-off date for historical opening balances.')),
                ('bs_cutoff_date', models.CharField(blank=True, max_length=16)),
                ('require_approval', models.BooleanField(default=True)),
                ('auto_post_on_create', models.BooleanField(default=True)),
                ('allow_live_midyear_migration', models.BooleanField(default=False)),
                ('is_migration_locked', models.BooleanField(default=False)),
                ('locked_at', models.DateTimeField(blank=True, null=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ob_profiles', to='tenancy.company')),
                ('default_clearing_account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='accounting.account')),
                ('default_equity_account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='accounting.account')),
                ('fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ob_profiles', to='tenancy.fiscalyear')),
                ('locked_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'ob_profiles',
                'unique_together': {('company', 'fiscal_year')},
            },
        ),
        migrations.CreateModel(
            name='OpeningBalancePartyReference',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('reference_no', models.CharField(max_length=64)),
                ('classification', models.CharField(max_length=28)),
                ('opening_amount', models.DecimalField(decimal_places=2, max_digits=18)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.company')),
                ('fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tenancy.fiscalyear')),
                ('party', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ob_references', to='accounting.party')),
                ('ob_voucher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounting.openingbalancevoucher')),
            ],
            options={
                'db_table': 'ob_party_references',
                'unique_together': {('company', 'fiscal_year', 'party', 'reference_no')},
            },
        ),
        migrations.CreateModel(
            name='FinancialYearOpeningCarryForward',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('carry_forward_date', models.DateField()),
                ('total_debit', models.DecimalField(decimal_places=2, max_digits=18)),
                ('total_credit', models.DecimalField(decimal_places=2, max_digits=18)),
                ('accounts_carried', models.PositiveIntegerField(default=0)),
                ('open_items_carried', models.PositiveIntegerField(default=0)),
                ('status', models.CharField(default='POSTED', max_length=16)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fy_carry_forwards', to='tenancy.company')),
                ('executed_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                ('source_fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='carry_forwards_out', to='tenancy.fiscalyear')),
                ('target_fiscal_year', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='carry_forwards_in', to='tenancy.fiscalyear')),
                ('ob_voucher', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='accounting.openingbalancevoucher')),
            ],
            options={
                'db_table': 'ob_fy_carry_forwards',
                'unique_together': {('company', 'source_fiscal_year', 'target_fiscal_year')},
            },
        ),
    ]
