# Generated by Django 5.1.4 on 2024-12-10 08:38

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ScheduledTask',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('task_name', models.CharField(max_length=255, verbose_name='Название задачи')),
                ('function_path', models.CharField(choices=scheduler.models.get_available_functions, max_length=500, verbose_name='Путь к функции (модуль.функция)')),
                ('minutes', models.CharField(default='*', max_length=255, verbose_name='Минуты')),
                ('hours', models.CharField(default='*', max_length=255, verbose_name='Часы')),
                ('days', models.CharField(default='*', max_length=255, verbose_name='Дни')),
                ('months', models.CharField(default='*', max_length=255, verbose_name='Месяцы')),
                ('weekdays', models.JSONField(default=list, verbose_name='Дни недели')),
                ('active', models.BooleanField(default=True, verbose_name='Активно')),
                ('last_run', models.DateTimeField(blank=True, null=True, verbose_name='Последний запуск')),
            ],
        ),
    ]
