# Generated by Django 5.0.6 on 2024-06-02 16:56

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


class Migration(migrations.Migration):

    dependencies = [
        ('pt_map', '0006_alter_route_route_type'),
    ]

    operations = [
        migrations.CreateModel(
            name='Location',
            fields=[
                ('location_id', models.CharField(max_length=255, primary_key=True, serialize=False)),
                ('location_name', models.CharField(max_length=255)),
                ('location_lat', models.FloatField()),
                ('location_lon', models.FloatField()),
                ('location_type', models.CharField(max_length=255)),
                ('parent_location_id', models.CharField(blank=True, max_length=255, null=True)),
                ('wheelchair_boarding', models.BooleanField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Translation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('table_name', models.CharField(max_length=255)),
                ('field_name', models.CharField(max_length=255)),
                ('language', models.CharField(max_length=2)),
                ('translation', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Attribution',
            fields=[
                ('attribution_id', models.CharField(max_length=255, primary_key=True, serialize=False)),
                ('attribution_name', models.CharField(max_length=255)),
                ('attribution_url', models.URLField()),
                ('attribution_email', models.EmailField(blank=True, max_length=254, null=True)),
                ('attribution_phone', models.CharField(blank=True, max_length=50, null=True)),
                ('agency', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pt_map.agency')),
            ],
        ),
        migrations.CreateModel(
            name='BookingRule',
            fields=[
                ('booking_rule_id', models.CharField(max_length=255, primary_key=True, serialize=False)),
                ('start_time', models.TimeField(blank=True, null=True)),
                ('end_time', models.TimeField(blank=True, null=True)),
                ('booking_type', models.CharField(max_length=255)),
                ('rule_criteria', models.TextField(blank=True, null=True)),
                ('booking_rule_instructions', models.TextField(blank=True, null=True)),
                ('trip', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pt_map.trip')),
            ],
        ),
    ]
