# Generated by Django 2.2.6 on 2019-11-12 20:59

import django.core.validators
from django.db import migrations, models
import re


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, unique=True)),
                ('category', models.CharField(choices=[('Linux', (('nx', 'Nginx'),)), ('ot', 'Other')], max_length=2)),
                ('created', models.DateField(auto_now_add=True)),
                ('updated', models.DateField(auto_now=True)),
                ('slug', models.SlugField(unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[-\\w]+\\Z'), "Enter a valid 'slug' consisting of Unicode letters, numbers, underscores, or hyphens.", 'invalid')])),
                ('description', models.TextField()),
                ('keywords', models.CharField(max_length=50)),
                ('published', models.BooleanField(default=False)),
                ('content', models.TextField()),
            ],
        ),
    ]
