text: # Generated by Django 2.2.24 on 2021-08-14 21:40
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='UserProfile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('mobile_number', models.CharField(blank=True, max_length=20, null=True)),
                  ('photo', models.URLField(blank=True, null=True)),
                  ('status', models.CharField(blank=True, max_length=50, null=True)),
                  ('timestamp_created', models.DateTimeField(auto_now_add=True, null=True)),
                  ('last_updated', models.DateTimeField(auto_now=True, null=True)),
                  ('last_login', models.DateTimeField(blank=True, null=True)),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='userprofile_user', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Notification',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('type', models.CharField(max_length=20)),
                  ('message', models.TextField()),
                  ('timestamp_created', models.DateTimeField(auto_now_add=True)),
                  ('users', models.ManyToManyField(related_name='notification_users', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='InviteCode',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('code', models.CharField(max_length=20)),
                  ('timestamp_created', models.DateTimeField(auto_now_add=True)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='invitecode_user', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='DriverProfile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('mobile_number', models.CharField(max_length=20)),
                  ('photo', models.URLField()),
                  ('driver_status', models.CharField(max_length=50)),
                  ('timestamp_created', models.DateTimeField(auto_now_add=True)),
                  ('last_updated', models.DateTimeField(auto_now=True)),
                  ('last_login', models.DateTimeField()),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='driverprofile_user', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Document',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=255)),
                  ('file', models.URLField()),
                  ('description', models.TextField(blank=True, null=True)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_user', to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  