# Generated by Django 5.2.16 on 2026-08-11 21:44

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='ActivityReport',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('scope', models.CharField(choices=[('CAMPUS', 'Campus'), ('NATIONAL', 'National')], max_length=15)),
                ('activity_type', models.CharField(choices=[('MEETING', 'Meeting'), ('EVANGELISM', 'Evangelism'), ('CRUSADE', 'Crusade'), ('SOUL_WINNING', 'Soul winning'), ('OTHER', 'Other')], max_length=20)),
                ('title', models.CharField(max_length=180)),
                ('activity_date', models.DateField()),
                ('venue', models.CharField(blank=True, max_length=180)),
                ('attendance', models.PositiveIntegerField(default=0)),
                ('souls_won', models.PositiveIntegerField(default=0)),
                ('converts_followed_up', models.PositiveIntegerField(default=0)),
                ('summary', models.TextField()),
                ('submitted_at', models.DateTimeField(auto_now_add=True)),
                ('approved', models.BooleanField(default=False)),
                ('approved_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='approved_activity_reports', to=settings.AUTH_USER_MODEL)),
                ('campus', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='activities', to='core.campus')),
                ('submitted_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='activity_reports', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-activity_date', '-submitted_at'],
            },
        ),
    ]
