# Generated by Django 5.2.7 on 2026-02-02 08:00

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0003_remove_systemsetting_logo_url_systemsetting_logo_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='Unit',
            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)')),
                ('short_name', models.CharField(max_length=10, verbose_name='Short Name')),
            ],
        ),
        migrations.AddField(
            model_name='product',
            name='unit',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='products', to='core.unit'),
        ),
    ]
