# Generated by Django 4.2.13 on 2024-06-11 17:19

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


class Migration(migrations.Migration):

    dependencies = [
        ("gestion", "0004_alter_livre_a_lire_options"),
    ]

    operations = [
        migrations.CreateModel(
            name="Bibliotheque",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "nom",
                    models.CharField(
                        default="coopérative",
                        max_length=20,
                        unique=True,
                        verbose_name="salle",
                    ),
                ),
                ("svg", models.FileField(upload_to="./media/", verbose_name="plan")),
            ],
        ),
        migrations.CreateModel(
            name="Localisation",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("x", models.FloatField(default=0, verbose_name="abscisse")),
                ("y", models.FloatField(default=0, verbose_name="ordonnée")),
                ("z", models.FloatField(default=1, verbose_name="cote")),
                ("abrege", models.CharField(max_length=20, verbose_name="Abrégé")),
                (
                    "categories",
                    models.TextField(blank=True, null=True, verbose_name="Catégories"),
                ),
                (
                    "bib",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="gestion.bibliotheque",
                        verbose_name="Bibliothèque",
                    ),
                ),
            ],
        ),
    ]
