# Generated by Django 5.2.7 on 2026-02-02 13:01

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0010_purchase_created_by_purchasepayment_created_by_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='PaymentMethod',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name_en', models.CharField(max_length=50, verbose_name='Name (English)')),
                ('name_ar', models.CharField(max_length=50, verbose_name='Name (Arabic)')),
                ('is_active', models.BooleanField(default=True, verbose_name='Active')),
            ],
        ),
        migrations.AddField(
            model_name='purchasepayment',
            name='payment_method_name',
            field=models.CharField(default='Cash', max_length=50, verbose_name='Payment Method Name'),
        ),
        migrations.AddField(
            model_name='salepayment',
            name='payment_method_name',
            field=models.CharField(default='Cash', max_length=50, verbose_name='Payment Method Name'),
        ),
        migrations.AlterField(
            model_name='purchasepayment',
            name='payment_method',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='purchase_payments', to='core.paymentmethod'),
        ),
        migrations.AlterField(
            model_name='salepayment',
            name='payment_method',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sale_payments', to='core.paymentmethod'),
        ),
    ]
