# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-16 09:47
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Art',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='标题')),
                ('summary', models.TextField(verbose_name='简介')),
                ('content', models.TextField(verbose_name='内容')),
                ('publish_date', models.DateTimeField(auto_now_add=True, null=True, verbose_name='发布时间')),
            ],
            options={
                'verbose_name': '文章',
                'db_table': 't_art',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, verbose_name='标签名')),
                ('modify_time', models.DateTimeField(auto_now=True, verbose_name='最后修改')),
                ('is_top', models.BooleanField(default=True, verbose_name='是否置顶')),
            ],
            options={
                'verbose_name': '标签分类',
                'db_table': 't_tag',
            },
        ),
        migrations.AddField(
            model_name='art',
            name='tag',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='art.Tag', verbose_name='标签'),
        ),
    ]
