# Generated by Django 5.2.8 on 2025-11-29 16:25

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


class Migration(migrations.Migration):

    dependencies = [
        ('schedule', '0019_alter_event_status_eventplugin_event_plugins'),
    ]

    operations = [
        migrations.AlterUniqueTogether(
            name='eventplugin',
            unique_together=set(),
        ),
        migrations.AddField(
            model_name='eventplugin',
            name='offset_minutes',
            field=models.PositiveIntegerField(default=0, help_text="Minutes offset from trigger time (e.g., 10 = '10 minutes before/after')"),
        ),
        migrations.AlterField(
            model_name='eventplugin',
            name='event',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event_plugins', to='schedule.event'),
        ),
        migrations.AlterField(
            model_name='eventplugin',
            name='trigger',
            field=models.CharField(choices=[('before_start', 'Before Start'), ('at_start', 'At Start'), ('after_start', 'After Start'), ('after_end', 'After End'), ('on_complete', 'When Completed'), ('on_cancel', 'When Canceled')], default='at_start', help_text='When this plugin should execute', max_length=20),
        ),
        migrations.AlterUniqueTogether(
            name='eventplugin',
            unique_together={('event', 'plugin_installation', 'trigger', 'offset_minutes')},
        ),
    ]
