0003_copilotinstance.py
1 # Generated by Django 5.0 on 2023-12-15 21:15 2 3 import uuid 4 5 import django.db.models.deletion 6 import django_extensions.db.fields 7 from django.db import migrations, models 8 9 10 class Migration(migrations.Migration): 11 dependencies = [ 12 ("b4mad_racing_website", "0002_alter_profile_options_and_more"), 13 ] 14 15 operations = [ 16 migrations.CreateModel( 17 name="CopilotInstance", 18 fields=[ 19 ( 20 "created", 21 django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name="created"), 22 ), 23 ( 24 "modified", 25 django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name="modified"), 26 ), 27 ("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), 28 ( 29 "status", 30 models.CharField( 31 choices=[ 32 ("ENABLED", "Enabled"), 33 ("DISABLED", "Disabled"), 34 ("MISCONFIGURED", "Misconfigured"), 35 ("CONFIGURED", "Configured"), 36 ("RUNNING", "Running"), 37 ("STOPPED", "Stopped"), 38 ("ERROR", "Error"), 39 ], 40 default="MISCONFIGURED", 41 max_length=13, 42 ), 43 ), 44 ( 45 "copilot", 46 models.OneToOneField( 47 blank=True, 48 default=None, 49 null=True, 50 on_delete=django.db.models.deletion.CASCADE, 51 to="b4mad_racing_website.copilot", 52 ), 53 ), 54 ( 55 "driver", 56 models.ForeignKey( 57 blank=True, 58 default=None, 59 null=True, 60 on_delete=django.db.models.deletion.CASCADE, 61 to="b4mad_racing_website.profile", 62 ), 63 ), 64 ], 65 options={ 66 "get_latest_by": "modified", 67 "abstract": False, 68 }, 69 ), 70 ]