# Generated by Django 5.1.4 on 2024-12-06 14:30

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='interiorcolors',
            name='car',
        ),
        migrations.CreateModel(
            name='CarColors',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
                ('arabic_name', models.CharField(max_length=255, verbose_name='Arabic Name')),
                ('rgb', models.CharField(blank=True, max_length=24, null=True, verbose_name='RGB')),
                ('color_type', models.CharField(choices=[('exterior', 'Exterior'), ('interior', 'Interior')], default='exterior', max_length=10, verbose_name='Color Type')),
                ('car', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='colors', to='inventory.car')),
            ],
            options={
                'verbose_name': 'Color',
                'verbose_name_plural': 'Colors',
            },
        ),
        migrations.DeleteModel(
            name='ExteriorColors',
        ),
        migrations.DeleteModel(
            name='InteriorColors',
        ),
    ]
