# Generated by Django 3.2.6 on 2021-10-27 12:34

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, unique=True)),
                ('description', models.TextField()),
            ],
            options={
                'verbose_name_plural': 'kategori',
            },
        ),
        migrations.CreateModel(
            name='Slide',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200, verbose_name='Title')),
                ('show_title', models.BooleanField(default=True, verbose_name='Show title')),
                ('cta', models.CharField(blank=True, max_length=250, null=True, verbose_name='Call to action')),
                ('link_url', models.CharField(blank=True, max_length=200, null=True, verbose_name='Link')),
                ('image', models.FileField(blank=True, max_length=255, null=True, upload_to='banner/', verbose_name='Image')),
                ('status', models.SmallIntegerField(choices=[(1, 'Draft'), (2, 'Published')], default=1, verbose_name='Status')),
                ('featured', models.BooleanField(default=False)),
                ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='banner.category')),
            ],
            options={
                'verbose_name_plural': 'Slide',
            },
        ),
    ]
