ixg_platform/apps/shipments/migrations/0001_initial.py

38 lines
1.8 KiB
Python

# Generated by Django 5.2.12 on 2026-07-29 12:02
import django.db.models.deletion
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('batches', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Shipment',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('status', models.CharField(choices=[('booked', 'Booked'), ('loading', 'Loading'), ('departed', 'Departed'), ('in_transit', 'In Transit'), ('arrived_uk', 'Arrived UK'), ('customs_clearance', 'Customs Clearance'), ('delivered', 'Delivered')], default='booked', max_length=20)),
('origin_port', models.CharField(default='Apapa Port, Lagos', max_length=255)),
('destination_port', models.CharField(default='Port of Felixstowe', max_length=255)),
('vessel_name', models.CharField(blank=True, max_length=255)),
('container_ref', models.CharField(blank=True, max_length=255)),
('etd_nigeria', models.DateField(blank=True, null=True)),
('eta_uk', models.DateField(blank=True, null=True)),
('bl_number', models.CharField(blank=True, max_length=255)),
('freight_forwarder', models.CharField(blank=True, max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shipments', to='batches.processingbatch')),
],
options={
'db_table': 'shipments',
'ordering': ['-created_at'],
},
),
]