# Generated by Django 5.0.6 on 2024-06-02 11:40

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


class Migration(migrations.Migration):

    dependencies = [
        ('pt_map', '0004_alter_agency_agency_id_alter_calendar_service_id_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='Level',
            fields=[
                ('level_id', models.CharField(max_length=255, primary_key=True, serialize=False)),
                ('level_index', models.FloatField()),
                ('level_name', models.CharField(blank=True, max_length=255, null=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='stop',
            name='tts_stop_name',
        ),
        migrations.AddField(
            model_name='agency',
            name='agency_lang',
            field=models.CharField(blank=True, max_length=2, null=True),
        ),
        migrations.AddField(
            model_name='agency',
            name='agency_timezone',
            field=models.CharField(default=django.utils.timezone.now, max_length=255),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='feedinfo',
            name='default_lang',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AddField(
            model_name='feedinfo',
            name='feed_contact_email',
            field=models.EmailField(blank=True, max_length=254, null=True),
        ),
        migrations.AddField(
            model_name='feedinfo',
            name='feed_contact_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='route',
            name='continuous_drop_off',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='route',
            name='continuous_pickup',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='route',
            name='route_sort_order',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='agency',
            name='agency_email',
            field=models.EmailField(blank=True, max_length=254, null=True),
        ),
        migrations.AlterField(
            model_name='agency',
            name='agency_fare_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='agency',
            name='agency_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.AlterField(
            model_name='agency',
            name='agency_name',
            field=models.CharField(max_length=255),
        ),
        migrations.AlterField(
            model_name='agency',
            name='agency_phone',
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='calendar',
            name='service_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.AlterField(
            model_name='calendardate',
            name='service_id',
            field=models.CharField(max_length=255),
        ),
        migrations.AlterField(
            model_name='fareattribute',
            name='currency_type',
            field=models.CharField(max_length=3),
        ),
        migrations.AlterField(
            model_name='fareattribute',
            name='fare_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.AlterField(
            model_name='route',
            name='agency',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='pt_map.agency'),
        ),
        migrations.AlterField(
            model_name='route',
            name='route_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.AlterField(
            model_name='route',
            name='route_long_name',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='route',
            name='route_short_name',
            field=models.CharField(max_length=50),
        ),
        migrations.AlterField(
            model_name='stop',
            name='platform_code',
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_code',
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_desc',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_lat',
            field=models.FloatField(),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_lon',
            field=models.FloatField(),
        ),
        migrations.AlterField(
            model_name='stop',
            name='stop_name',
            field=models.CharField(max_length=255),
        ),
        migrations.AlterField(
            model_name='stop',
            name='zone_id',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='stoptime',
            name='arrival_time',
            field=models.TimeField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='stoptime',
            name='departure_time',
            field=models.TimeField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='trip',
            name='trip_id',
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.CreateModel(
            name='Pathway',
            fields=[
                ('pathway_id', models.CharField(max_length=255, primary_key=True, serialize=False)),
                ('pathway_mode', models.IntegerField()),
                ('is_bidirectional', models.IntegerField()),
                ('length', models.FloatField(blank=True, null=True)),
                ('traversal_time', models.IntegerField(blank=True, null=True)),
                ('stair_count', models.IntegerField(blank=True, null=True)),
                ('max_slope', models.FloatField(blank=True, null=True)),
                ('min_width', models.FloatField(blank=True, null=True)),
                ('signposted_as', models.CharField(blank=True, max_length=255, null=True)),
                ('reversed_signposted_as', models.CharField(blank=True, max_length=255, null=True)),
                ('from_stop', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pathways_from', to='pt_map.stop')),
                ('to_stop', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pathways_to', to='pt_map.stop')),
            ],
        ),
    ]
