"""
Models for the automations app.

This module re-exports the automation models from the schedule app with new names.
The canonical model definitions remain in schedule/models.py for backwards compatibility.

Automations (formerly plugins) are Python-based automated tasks that can be:
- Attached to calendar events (EventAutomation)
- Run globally on all events (GlobalEventAutomation)
- Installed from templates (AutomationTemplate, AutomationInstallation)

New code should use the names from this module:
- AutomationTemplate (was PluginTemplate)
- AutomationInstallation (was PluginInstallation)
- EventAutomation (was EventPlugin)
- GlobalEventAutomation (was GlobalEventPlugin)
- WhitelistedURL (same name, moved to automations domain)
"""

# Re-export models from schedule with new names
from smoothschedule.scheduling.schedule.models import (
    PluginTemplate as AutomationTemplate,
    PluginInstallation as AutomationInstallation,
    EventPlugin as EventAutomation,
    GlobalEventPlugin as GlobalEventAutomation,
    WhitelistedURL,
)

# Export all names
__all__ = [
    'AutomationTemplate',
    'AutomationInstallation',
    'EventAutomation',
    'GlobalEventAutomation',
    'WhitelistedURL',
]
