# Generated by Django 6.0 on 2026-03-04 23:59

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Announcement',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('content', models.TextField()),
                ('audience', models.CharField(choices=[('all', 'Everyone'), ('students', 'Students'), ('parents', 'Parents'), ('teachers', 'Teachers')], default='all', max_length=20)),
                ('priority', models.CharField(choices=[('low', 'Low'), ('normal', 'Normal'), ('high', 'High'), ('urgent', 'Urgent')], default='normal', max_length=20)),
                ('publish_date', models.DateField()),
                ('is_published', models.BooleanField(default=True)),
            ],
            options={
                'ordering': ['-publish_date', '-priority'],
            },
        ),
        migrations.CreateModel(
            name='SMSMessage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('message_type', models.CharField(choices=[('attendance', 'Attendance Alert'), ('fee_reminder', 'Fee Reminder'), ('exam', 'Exam Notice'), ('meeting', 'Parent Meeting'), ('emergency', 'Emergency Alert'), ('general', 'General Announcement')], max_length=20)),
                ('message', models.TextField()),
                ('phone_numbers', models.JSONField(default=list)),
                ('status', models.CharField(choices=[('draft', 'Draft'), ('sent', 'Sent'), ('failed', 'Failed')], default='draft', max_length=20)),
                ('sent_time', models.DateTimeField(blank=True, null=True)),
            ],
        ),
    ]
