text: # Generated by Django 2.0.2 on 2018-05-31 10:49
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
      ]
  
      operations = [
          migrations.CreateModel(
              name='Author',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=255)),
                  ('created_time', models.DateTimeField(auto_now_add=True)),
                  ('updated_time', models.DateTimeField(auto_now=True)),
              ],
          ),
          migrations.CreateModel(
              name='Dynasty',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=255)),
                  ('created_time', models.DateTimeField(auto_now_add=True)),
                  ('updated_time', models.DateTimeField(auto_now=True)),
              ],
          ),
          migrations.CreateModel(
              name='Poem',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('get_id', models.IntegerField(default=0)),
                  ('title', models.CharField(max_length=255)),
                  ('content', models.TextField()),
                  ('created_time', models.DateTimeField(auto_now_add=True)),
                  ('updated_time', models.DateTimeField(auto_now=True)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app_poem.Author')),
                  ('dynasty', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app_poem.Dynasty')),
              ],
          ),
          migrations.CreateModel(
              name='Tag',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=255)),
                  ('created_time', models.DateTimeField(auto_now_add=True)),
                  ('updated_time', models.DateTimeField(auto_now=True)),
              ],
          ),
          migrations.AddField(
              model_name='poem',
              name='tags',
              field=models.ManyToManyField(to='app_poem.Tag'),
          ),
      ]
  