# Generated by Django 5.2.12 on 2026-04-01 21:48

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


class Migration(migrations.Migration):

    dependencies = [
        ('companies', '0001_initial'),
        ('sales', '0012_remove_custom_fields'),
    ]

    operations = [
        migrations.AddField(
            model_name='cashreconciliation',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cash_reconciliations', to='companies.company'),
        ),
        migrations.AddField(
            model_name='customer',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='customers', to='companies.company'),
        ),
        migrations.AddField(
            model_name='dailysalessummary',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='daily_summaries', to='companies.company'),
        ),
        migrations.AddField(
            model_name='posorder',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='orders', to='companies.company'),
        ),
        migrations.AddField(
            model_name='unusualtransaction',
            name='company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='unusual_transactions', to='companies.company'),
        ),
        migrations.AlterField(
            model_name='cashreconciliation',
            name='date',
            field=models.DateField(),
        ),
        migrations.AlterField(
            model_name='dailysalessummary',
            name='date',
            field=models.DateField(),
        ),
        migrations.AlterUniqueTogether(
            name='cashreconciliation',
            unique_together={('company', 'date')},
        ),
        migrations.AlterUniqueTogether(
            name='dailysalessummary',
            unique_together={('company', 'date')},
        ),
    ]
