# Generated by Django 5.2.9 on 2025-12-31 01:20

import autoslug.fields
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=254, verbose_name='Resim Başlığı')),
                ('path', models.CharField(max_length=254, verbose_name='Resim Yolu')),
                ('processed_path', models.CharField(max_length=254, verbose_name='Orijinal Resim Yolu')),
                ('original_filename', models.CharField(max_length=254, verbose_name='Orijinal Resim Adı')),
                ('format', models.CharField(choices=[('png', 'PNG'), ('webp', 'WebP'), ('jpg', 'JPG'), ('avif', 'AVIF')], default='webp', max_length=254, verbose_name='Resim Formati')),
                ('width', models.IntegerField()),
                ('height', models.IntegerField()),
                ('size', models.IntegerField()),
                ('quality', models.IntegerField()),
                ('slug', autoslug.fields.AutoSlugField(blank=True, editable=True, max_length=250, populate_from='title', unique=True)),
                ('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ü ?')),
            ],
            options={
                'verbose_name': 'Post',
                'verbose_name_plural': 'Posts',
                'db_table': 'images',
                'ordering': ['created_at'],
                'unique_together': {('slug',)},
            },
        ),
    ]
