# Generated by Django 2.2 on 2021-11-08 14:05

import datetime
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.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('name', models.CharField(max_length=100, verbose_name='分类名称')),
            ],
            options={
                'verbose_name': '分类',
                'verbose_name_plural': '分类',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('name', models.CharField(max_length=100, verbose_name='标签名称')),
            ],
            options={
                'verbose_name': '标签',
                'verbose_name_plural': '标签',
            },
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('title', models.CharField(max_length=70, verbose_name='文章标题')),
                ('body', models.TextField(verbose_name='文章正文')),
                ('excerpt', models.CharField(blank=True, max_length=200, verbose_name='正文内容')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog_2.Category', verbose_name='文章所属分类')),
                ('tags', models.ManyToManyField(blank=True, to='blog_2.Tag', verbose_name='文章所属标签')),
            ],
            options={
                'verbose_name': '文章',
                'verbose_name_plural': '文章',
            },
        ),
    ]

e0198b6b4bf45b48b7d91bed4cf38a29280443c8
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('create_time', models.DateTimeField(
        default=datetime.datetime.now, verbose_name='添加时间')), (
        'update_time', models.DateTimeField(auto_now=True, verbose_name=
        '更新时间')), ('name', models.CharField(max_length=100, verbose_name=
        '分类名称'))], options={'verbose_name': '分类', 'verbose_name_plural':
        '分类'}), migrations.CreateModel(name='Tag', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('create_time', models.DateTimeField(default=
        datetime.datetime.now, verbose_name='添加时间')), ('update_time',
        models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('name',
        models.CharField(max_length=100, verbose_name='标签名称'))], options={
        'verbose_name': '标签', 'verbose_name_plural': '标签'}), migrations.
        CreateModel(name='Post', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('create_time', models.DateTimeField(default=datetime.
        datetime.now, verbose_name='添加时间')), ('update_time', models.
        DateTimeField(auto_now=True, verbose_name='更新时间')), ('title',
        models.CharField(max_length=70, verbose_name='文章标题')), ('body',
        models.TextField(verbose_name='文章正文')), ('excerpt', models.
        CharField(blank=True, max_length=200, verbose_name='正文内容')), (
        'author', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')), (
        'category', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='blog_2.Category', verbose_name='文章所属分类')), ('tags',
        models.ManyToManyField(blank=True, to='blog_2.Tag', verbose_name=
        '文章所属标签'))], options={'verbose_name': '文章', 'verbose_name_plural':
        '文章'})]

import datetime
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.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('create_time', models.DateTimeField(
        default=datetime.datetime.now, verbose_name='添加时间')), (
        'update_time', models.DateTimeField(auto_now=True, verbose_name=
        '更新时间')), ('name', models.CharField(max_length=100, verbose_name=
        '分类名称'))], options={'verbose_name': '分类', 'verbose_name_plural':
        '分类'}), migrations.CreateModel(name='Tag', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('create_time', models.DateTimeField(default=
        datetime.datetime.now, verbose_name='添加时间')), ('update_time',
        models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('name',
        models.CharField(max_length=100, verbose_name='标签名称'))], options={
        'verbose_name': '标签', 'verbose_name_plural': '标签'}), migrations.
        CreateModel(name='Post', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('create_time', models.DateTimeField(default=datetime.
        datetime.now, verbose_name='添加时间')), ('update_time', models.
        DateTimeField(auto_now=True, verbose_name='更新时间')), ('title',
        models.CharField(max_length=70, verbose_name='文章标题')), ('body',
        models.TextField(verbose_name='文章正文')), ('excerpt', models.
        CharField(blank=True, max_length=200, verbose_name='正文内容')), (
        'author', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')), (
        'category', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='blog_2.Category', verbose_name='文章所属分类')), ('tags',
        models.ManyToManyField(blank=True, to='blog_2.Tag', verbose_name=
        '文章所属标签'))], options={'verbose_name': '文章', 'verbose_name_plural':
        '文章'})]

# Generated by Django 2.2 on 2021-11-08 14:05

import datetime
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.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('name', models.CharField(max_length=100, verbose_name='分类名称')),
            ],
            options={
                'verbose_name': '分类',
                'verbose_name_plural': '分类',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('name', models.CharField(max_length=100, verbose_name='标签名称')),
            ],
            options={
                'verbose_name': '标签',
                'verbose_name_plural': '标签',
            },
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('title', models.CharField(max_length=70, verbose_name='文章标题')),
                ('body', models.TextField(verbose_name='文章正文')),
                ('excerpt', models.CharField(blank=True, max_length=200, verbose_name='正文内容')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog_2.Category', verbose_name='文章所属分类')),
                ('tags', models.ManyToManyField(blank=True, to='blog_2.Tag', verbose_name='文章所属标签')),
            ],
            options={
                'verbose_name': '文章',
                'verbose_name_plural': '文章',
            },
        ),
    ]
