<filename>meetthestack/sms/migrations/0001_initial.py
# Generated by Django 3.2.6 on 2021-08-28 19:39

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='SmsMessage',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('date_created', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('deleted', models.BooleanField(default=False)),
                ('sid', models.CharField(db_index=True, max_length=255)),
                ('from_number', models.CharField(db_index=True, max_length=255)),
                ('to_number', models.CharField(db_index=True, max_length=255)),
                ('body', models.TextField(db_index=True)),
                ('related_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sms_messages', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
