# Generated by Django 5.2.3 on 2025-06-27 10:20

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("common", "0001_initial"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="PreinfoModel",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("container_number", models.CharField(max_length=11)),
                ("created_on", models.DateTimeField(auto_now_add=True)),
                ("deleted", models.BooleanField(default=False)),
                ("deleted_on", models.DateTimeField(null=True)),
                ("received", models.BooleanField(default=False)),
                (
                    "container_type",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="preinfo_container_types",
                        to="common.containertypemodel",
                    ),
                ),
                (
                    "created_by",
                    models.ForeignKey(
                        db_column="created_by_id",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="preinfo_created_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "deleted_by",
                    models.ForeignKey(
                        db_column="deleted_by_id",
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="preinfo_deleted_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "line",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="preinfo_lines",
                        to="common.linesmodel",
                    ),
                ),
            ],
        ),
    ]
