# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-04 13:12
from __future__ import unicode_literals

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


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')),
                ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                ('title', models.CharField(max_length=70, verbose_name='tytuł')),
                ('is_active', models.BooleanField(default=True, verbose_name='czy aktywny?')),
                ('short_text', models.TextField(blank=True, verbose_name='tekst na widoku listy')),
                ('long_text', models.TextField(blank=True, verbose_name='tekst')),
                ('image', models.ImageField(blank=True, null=True, upload_to='article_images/', verbose_name='grafika')),
                ('author', models.CharField(blank=True, max_length=70, verbose_name='autor')),
                ('system_id', models.SmallIntegerField(blank=True, choices=[(0, 'Przykad 1'), (1, 'Przykład 2')], default=None, null=True, verbose_name='typ specjalny')),
            ],
            options={
                'verbose_name': 'artykuł',
                'verbose_name_plural': 'artykuły',
            },
        ),
        migrations.CreateModel(
            name='ArticleCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=70, verbose_name='nazwa')),
            ],
            options={
                'verbose_name': 'kategoria artykułu',
                'verbose_name_plural': 'kategorie artykułu',
            },
        ),
        migrations.CreateModel(
            name='StaticVideos',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('system_id', models.SmallIntegerField(choices=[(0, 'Przykad 1'), (1, 'Przykład 2')], default=None, verbose_name='id systemowe')),
            ],
            options={
                'verbose_name': 'statyczne video',
                'verbose_name_plural': 'statyczne video',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='category',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='articles.ArticleCategory', verbose_name='kategoria'),
        ),
    ]
