# Generated by Django 6.0 on 2026-01-19 19:04

import core.utils
import imagekit.models.fields
import tinymce.models
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0022_alter_product_content_alter_product_images'),
    ]

    operations = [
        migrations.AlterField(
            model_name='product',
            name='brim',
            field=models.CharField(choices=[('Kg', 'Kg'), ('Adet', 'Adet')], max_length=10, verbose_name='Birim'),
        ),
        migrations.AlterField(
            model_name='product',
            name='categories',
            field=models.ManyToManyField(related_name='products', to='product.category', verbose_name='Ürün Kategorisi'),
        ),
        migrations.CreateModel(
            name='ProductTree',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=254, verbose_name='Text')),
                ('button', models.CharField(max_length=254, verbose_name='Button Text')),
                ('content', tinymce.models.HTMLField(blank=True, null=True, verbose_name='Ürün İçeriği')),
                ('price', models.FloatField(default='50', verbose_name='Birim Fiyatı')),
                ('images', imagekit.models.fields.ProcessedImageField(blank=True, null=True, upload_to=core.utils.UniquePathAndRename('uploads/products'))),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Oluşturulma Tarihi')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Güncelleme Tarihi')),
                ('is_active', models.BooleanField(choices=[(True, 'Evet'), (False, 'Hayır')], default=True, verbose_name='Yayındamı ?')),
                ('is_front', models.BooleanField(choices=[(True, 'Evet'), (False, 'Hayır')], default=True, verbose_name='Önde Görünsünmü ?')),
                ('categories', models.ManyToManyField(related_name='product_trees', to='product.category', verbose_name='Ürün Kategorisi')),
            ],
            options={
                'verbose_name': 'Ürün',
                'verbose_name_plural': 'Ürünler',
                'db_table': 'products_tree',
                'ordering': ['-created_at'],
            },
        ),
    ]
