# Generated by Django 2.2.6 on 2020-01-01 19:18

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


class Migration(migrations.Migration):

    dependencies = [
        ('busTicketBooking', '0012_auto_20191226_2100'),
    ]

    operations = [
        migrations.RenameField(
            model_name='trip',
            old_name='end_station',
            new_name='destination',
        ),
        migrations.RemoveField(
            model_name='bus',
            name='seat',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='A1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='A2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='A3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='A4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='B1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='B2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='B3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='B4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='C1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='C2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='C3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='C4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='D1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='D2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='D3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='D4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='E1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='E2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='E3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='E4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='F1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='F2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='F3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='F4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='G1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='G2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='G3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='G4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='H1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='H2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='H3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='H4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='I1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='I2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='I3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='I4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='J1',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='J2',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='J3',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='J4',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='J5',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='column_in_first_row',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='column_in_last_row',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='num_of_columns',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='num_of_rows',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='total_seat',
        ),
        migrations.RemoveField(
            model_name='trip',
            name='bus',
        ),
        migrations.RemoveField(
            model_name='trip',
            name='coachNo',
        ),
        migrations.AddField(
            model_name='bus',
            name='column_in_first_row',
            field=models.IntegerField(default=4),
        ),
        migrations.AddField(
            model_name='bus',
            name='column_in_last_row',
            field=models.IntegerField(default=5),
        ),
        migrations.AddField(
            model_name='bus',
            name='num_of_columns',
            field=models.IntegerField(default=4),
        ),
        migrations.AddField(
            model_name='bus',
            name='num_of_rows',
            field=models.IntegerField(default=10),
        ),
        migrations.AddField(
            model_name='bus',
            name='total_seat',
            field=models.IntegerField(default=40),
        ),
        migrations.AddField(
            model_name='seat',
            name='bus',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='busTicketBooking.Bus'),
        ),
        migrations.AddField(
            model_name='seat',
            name='seat_no',
            field=models.CharField(default='A1', max_length=10),
        ),
        migrations.AlterField(
            model_name='bus',
            name='manufacturer',
            field=models.CharField(choices=[('SCANIA', 'Scania'), ('VOLVO', 'Volvo'), ('HYUNDAI', 'Hyundai'), ('HINO', 'Hino'), ('MAN', 'Man')], default='HINO', max_length=20),
        ),
        migrations.CreateModel(
            name='TripSeat',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('seat_no', models.CharField(max_length=10)),
                ('status', models.CharField(choices=[('AVAILABLE', 'Available'), ('SOLD', 'Sold'), ('BOOKED', 'Booked'), ('DISABLED', 'Disabled')], default='...', max_length=10)),
                ('trip', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='busTicketBooking.Trip')),
            ],
        ),
        migrations.CreateModel(
            name='Coach',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bus', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='busTicketBooking.Bus')),
            ],
        ),
        migrations.AddField(
            model_name='trip',
            name='coach',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='busTicketBooking.Coach'),
        ),
    ]
