You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.2 KiB
Python
62 lines
2.2 KiB
Python
# Generated by Django 5.2.3 on 2025-06-25 12:33
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("common", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="BookingModel",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("number", models.CharField(max_length=50, unique=True)),
|
|
("vehicles", models.CharField(blank=True, null=True)),
|
|
("container_count", models.IntegerField()),
|
|
("carrier", models.CharField(blank=True, max_length=100, null=True)),
|
|
("visible", models.BooleanField(default=True)),
|
|
("is_new", models.BooleanField(default=True)),
|
|
(
|
|
"container_number",
|
|
models.CharField(blank=True, max_length=11, null=True),
|
|
),
|
|
("vehicles_left", models.IntegerField(blank=True, null=True)),
|
|
("created_on", models.DateTimeField(auto_now_add=True)),
|
|
("created_by", models.IntegerField()),
|
|
("updated_on", models.DateTimeField(auto_now=True)),
|
|
("updated_by", models.IntegerField()),
|
|
(
|
|
"container_type",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="booking_container_types",
|
|
to="common.containertypemodel",
|
|
),
|
|
),
|
|
(
|
|
"line",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="booking_lines",
|
|
to="common.linesmodel",
|
|
),
|
|
),
|
|
],
|
|
),
|
|
]
|