# Generated by Django 3.2.6 on 2021-11-07 12:51

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    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=255)),
                ('description', models.TextField()),
                ('slug', models.SlugField(max_length=255)),
                ('ordering', models.IntegerField(default=0)),
            ],
            options={
                'verbose_name_plural': 'Kategori',
                'ordering': ('ordering',),
            },
        ),
        migrations.CreateModel(
            name='Link',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('caption', models.CharField(blank=True, max_length=50, null=True)),
                ('icon', models.CharField(blank=True, max_length=100, null=True)),
                ('button_class', models.CharField(blank=True, max_length=100, null=True)),
                ('button_style', models.CharField(blank=True, max_length=100, null=True)),
                ('link_url', models.CharField(blank=True, max_length=200, null=True, verbose_name='Link')),
                ('thumbnail', models.ImageField(blank=True, null=True, upload_to='media/')),
                ('isi', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True)),
                ('date_added', models.DateTimeField(auto_now_add=True)),
                ('status', models.CharField(blank=True, choices=[('Publish', 'Publish'), ('Draft', 'Draft'), ('InActive', 'InActive')], default='Publish', max_length=20)),
                ('featured', models.BooleanField(default=False)),
                ('user_login', models.BooleanField(default=False)),
                ('slug', models.SlugField(blank=True, max_length=255, null=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='ekosistem.category')),
            ],
            options={
                'verbose_name_plural': 'Link',
                'ordering': ('-date_added',),
            },
        ),
    ]
