# Generated by Django 5.0.6 on 2026-10-26 05:01

import catalog.models
import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Dress',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=120)),
                ('category', models.CharField(choices=[('casual', 'Casual'), ('party', 'Party'), ('formal', 'Formal'), ('traditional', 'Traditional')], default='casual', max_length=20)),
                ('price', models.DecimalField(decimal_places=2, default=0, max_digits=8)),
                ('raw_image', models.ImageField(help_text='Photo of the dress, front view. The background is removed automatically.', upload_to='dresses_raw/', validators=[django.core.validators.FileExtensionValidator(['jpg', 'jpeg', 'png', 'webp']), catalog.models.validate_dress_size])),
                ('image', models.ImageField(blank=True, editable=False, upload_to='dresses/')),
                ('thumbnail', models.ImageField(blank=True, editable=False, upload_to='thumbnails/')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
