# Generated by Django 4.2 on 2024-05-30 07:56

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('vehicles', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Trips',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('vehicle_model_name', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('vehicle_type_name', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('trip_type', models.IntegerField(choices=[(0, 'One way'), (1, 'Round')], default=0)),
                ('pickup_address', models.CharField(max_length=255)),
                ('pickup_latitude', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('pickup_longitude', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('destination_address', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('destination_latitude', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('destination_longitude', models.CharField(blank=True, default='', max_length=255, null=True)),
                ('start_date', models.DateField()),
                ('start_time', models.CharField(max_length=255)),
                ('end_date', models.DateField()),
                ('end_time', models.CharField(max_length=255)),
                ('station_type', models.IntegerField(choices=[(0, 'In Station'), (1, 'Out Station')], default=0)),
                ('instructions', models.TextField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now_add=True)),
                ('transmission_type', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.SET_NULL, to='vehicles.transmissiontypes')),
                ('user', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='user_trips', to=settings.AUTH_USER_MODEL)),
                ('vehicle_model', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.SET_NULL, to='vehicles.vehiclemodels')),
                ('vehicle_type', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.SET_NULL, to='vehicles.vehicletypes')),
            ],
        ),
    ]
