# Generated by Django 3.2.7 on 2021-10-08 13:42

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('activitys', '0001_initial'),
        ('users', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='AdminArticleComment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment_text', models.CharField(max_length=320, verbose_name='评论内容')),
                ('comment_time', models.DateTimeField(auto_now_add=True, verbose_name='评论时间')),
                ('review_id', models.IntegerField(default=0, verbose_name='被回复的评论id')),
                ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='activitys.adminarticle', verbose_name='所属文章')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.userregist', verbose_name='评论/回复人')),
            ],
            options={
                'verbose_name_plural': '公告文章评论',
                'db_table': 'article_comment',
            },
        ),
        migrations.CreateModel(
            name='ActivityComment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment_text', models.CharField(max_length=320, verbose_name='评论内容')),
                ('comment_time', models.DateTimeField(auto_now_add=True, verbose_name='评论时间')),
                ('review_id', models.IntegerField(default=0, verbose_name='被回复的评论id')),
                ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='activitys.activity', verbose_name='所属活动')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.userregist', verbose_name='评论/回复人')),
            ],
            options={
                'verbose_name_plural': '活动评论',
                'db_table': 'activity_comment',
            },
        ),
    ]
