# Generated by Django 5.0.8 on 2024-10-26 10:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("geology", "0003_geology_banner_title"),
    ]

    operations = [
        migrations.CreateModel(
            name="Gallery",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "name",
                    models.CharField(
                        blank=True, max_length=255, null=True, verbose_name="Nomi"
                    ),
                ),
                (
                    "description",
                    models.TextField(blank=True, null=True, verbose_name="Tavsif"),
                ),
                ("image", models.ImageField(upload_to="media/", verbose_name="Fayl")),
                (
                    "type",
                    models.CharField(
                        blank=True, max_length=255, null=True, verbose_name="Fayl turi"
                    ),
                ),
                (
                    "size",
                    models.BigIntegerField(
                        blank=True, default=0, null=True, verbose_name="Hajmi"
                    ),
                ),
            ],
            options={
                "verbose_name": "Galereya",
                "verbose_name_plural": "Galereya",
                "ordering": ["-created_at"],
            },
        ),
        migrations.CreateModel(
            name="GalleryCategory",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                ("name", models.CharField(max_length=255, verbose_name="Nomi")),
                (
                    "gallery",
                    models.ManyToManyField(
                        related_name="gallery_category",
                        to="geology.gallery",
                        verbose_name="Galereya",
                    ),
                ),
            ],
            options={
                "verbose_name": "Galereya kategoriya",
                "verbose_name_plural": "Galereya kategoriyalar",
                "ordering": ["-created_at"],
            },
        ),
    ]
