<reponame>shahparkhan/CarLet
# Generated by Django 3.1.7 on 2021-04-19 08:34

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


class Migration(migrations.Migration):

    dependencies = [
        ('Carletapp', '0010_vehiclelocation'),
    ]

    operations = [
        migrations.CreateModel(
            name='TripDetail',
            fields=[
                ('trip_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('pickup_date', models.DateField()),
                ('dropoff_date', models.DateField()),
                ('duration', models.PositiveIntegerField()),
                ('cost', models.PositiveIntegerField()),
                ('renter_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='renter_id', to='Carletapp.carletuser')),
                ('vehicle_trip_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Carletapp.vehicledetail')),
            ],
        ),
    ]
