# Generated by Django 5.2.11 on 2026-04-07 17:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('pieteikumi', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('content', models.TextField(verbose_name='Ziņas saturs')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Izveidots')),
                ('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='client_messages', to=settings.AUTH_USER_MODEL, verbose_name='Klients')),
                ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sent_messages', to=settings.AUTH_USER_MODEL, verbose_name='Sūtītājs')),
            ],
            options={
                'verbose_name': 'Ziņa',
                'verbose_name_plural': 'Atbalsta Sarakste (Mailbox)',
                'ordering': ['created_at'],
            },
        ),
    ]
