# Generated by Django 5.0.6 on 2024-08-06 11:28

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name="Message",
            fields=[
                ("id", models.AutoField(primary_key=True, serialize=False)),
                ("email", models.TextField()),
                ("subject", models.TextField()),
                ("message", models.TextField()),
                (
                    "created_at",
                    models.IntegerField(
                        default=django_contact_message.models.get_timestamp
                    ),
                ),
                (
                    "user",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.DO_NOTHING,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "db_table": "django_contact_message",
                "ordering": ("-created_at", "id"),
            },
        ),
    ]
