Example #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0017_auto_20181130_2053'),
    ]

    operations = [
        migrations.AlterField(
            model_name='freeimages',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to='free/%Y/%m/%d/orig',
                                    verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='freepost',
            name='image',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='noticeimages',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to='notice%Y/%m/%d/orig',
                                    verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='proposalimages',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to='proposal/%Y/%m/%d/orig',
                                    verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='reportimages',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to='report/%Y/%m/%d/orig',
                                    verbose_name='Image'),
        ),
    ]
Example #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0021_auto_20181203_1844'),
    ]

    operations = [
        migrations.AlterField(
            model_name='freecomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='freepost',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='noticecomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='noticepost',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='proposalcomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='proposalpost',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='reportcomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path_first),
        ),
        migrations.AlterField(
            model_name='reportpost',
            name='image',
            field=models.ImageField(null=True, upload_to=board.models.user_directory_path_first),
        ),
    ]
Example #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0012_auto_20190809_1835'),
    ]

    operations = [
        migrations.AddField(
            model_name='post',
            name='image',
            field=models.ImageField(
                default='', upload_to=board.models.get_memo_image_path),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0015_merge_20200229_0349'),
    ]

    operations = [
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to=board.models.get_file_path)),
            ],
        ),
        migrations.DeleteModel(
            name='GenericImage',
        ),
    ]
Example #5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Board',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=30)),
                ('slug', models.SlugField(unique=True)),
                ('image',
                 models.ImageField(blank=True,
                                   height_field='height_field',
                                   null=True,
                                   upload_to=board.models.u_loc,
                                   width_field='width_field')),
                ('height_field', models.IntegerField(default=0)),
                ('width_field', models.IntegerField(default=0)),
                ('content', models.TextField(max_length=150)),
                ('draft', models.BooleanField(default=False)),
                ('publish', models.DateField()),
                ('updated', models.DateTimeField(auto_now=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('tags', models.CharField(default='', max_length=30)),
                ('user',
                 models.ForeignKey(default=1,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-timestamp', '-updated'],
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0028_community_tag'),
    ]

    operations = [
        migrations.AddField(
            model_name='community',
            name='front_page',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='community',
            name='image',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=board.models.user_directory_path),
        ),
    ]
Example #7
0
class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('board', '0011_auto_20200225_0310'),
    ]

    operations = [
        migrations.AddField(
            model_name='session',
            name='session_file',
            field=models.FileField(blank=True, null=True, upload_to=board.models.get_file_path),
        ),
        migrations.CreateModel(
            name='GenericImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to=board.models.get_file_path)),
                ('object_id', models.PositiveIntegerField()),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
            ],
        ),
    ]
Example #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('taggit', '0002_auto_20150616_2121'),
    ]

    operations = [
        migrations.CreateModel(
            name='Board',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('board_name', models.CharField(max_length=255)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('private', models.BooleanField(default=False)),
                ('description',
                 models.TextField(blank=True, default='', max_length=500)),
                ('video', models.CharField(blank=True, max_length=50)),
                ('hero',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=board.models.user_directory_path)),
                ('show_video', models.BooleanField(default=False)),
                ('active', models.BooleanField(default=False)),
                ('slug', models.SlugField(default='')),
                ('deleteable', models.BooleanField(default=True)),
                ('recommended', models.BooleanField(default=False)),
                ('tags',
                 taggit.managers.TaggableManager(
                     blank=True,
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='BoardLike',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='BoardPrivacy',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='BoardView',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('ip', models.CharField(max_length=16)),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('item_name', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='ItemConnection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 sorl.thumbnail.fields.ImageField(
                     default='defaults/no-item.png',
                     upload_to='uploads/items/')),
                ('img_own', models.BooleanField(default=False)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('allow_comments',
                 models.BooleanField(default=True,
                                     verbose_name='allow comments')),
                ('purchase_url', models.URLField(blank=True, max_length=255)),
                ('original_purchase_url',
                 models.URLField(blank=True, max_length=255)),
                ('item_desc',
                 models.CharField(blank=True, max_length=500, null=True)),
                ('review',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=500,
                                  null=True)),
                ('rating', models.CharField(default=0, max_length=500)),
                ('item_status',
                 models.CharField(choices=[('WNT', 'I want this'),
                                           ('GOT', "I've got this")],
                                  default='WNT',
                                  max_length=3)),
                ('active', models.BooleanField(default=True)),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
                ('item',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Item')),
            ],
        ),
        migrations.CreateModel(
            name='ItemLike',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('item_conx',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.ItemConnection')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ItemView',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('ip', models.CharField(max_length=16)),
                ('item_conx',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   to='board.ItemConnection')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Example #9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Address',
            fields=[
                ('rentGu', models.CharField(max_length=20)),
                ('rentDong', models.CharField(max_length=20)),
                ('stationName', models.CharField(max_length=100)),
                ('stationNum',
                 models.IntegerField(default=0,
                                     primary_key=True,
                                     serialize=False)),
                ('stationValue', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='Rent',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('rentTime', models.DateTimeField()),
                ('stationName', models.CharField(max_length=100)),
                ('stationNum',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Address')),
            ],
            options={
                'ordering': ['rentTime'],
            },
        ),
        migrations.CreateModel(
            name='Recede',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recedeTime', models.DateTimeField()),
                ('stationName', models.CharField(max_length=100)),
                ('stationNum',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Address')),
            ],
            options={
                'ordering': ['recedeTime'],
            },
        ),
        migrations.CreateModel(
            name='Notice',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=150)),
                ('content', models.TextField()),
                ('image',
                 models.ImageField(blank=True,
                                   upload_to=board.models.notices_image_path)),
                ('upload',
                 models.FileField(blank=True,
                                  upload_to=board.models.notices_image_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content', models.CharField(max_length=200)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('notice',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Notice')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Board',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('description', models.CharField(default='', max_length=300)),
                ('visibility',
                 models.CharField(choices=[('Public', 'Public'),
                                           ('Private', 'Private')],
                                  default='Public',
                                  max_length=50)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('member',
                 models.ManyToManyField(blank=True,
                                        related_name='members',
                                        to=settings.AUTH_USER_MODEL)),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='admin',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='List',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('archived', models.BooleanField(default=False)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
            ],
        ),
        migrations.CreateModel(
            name='Ticket',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('description',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=300,
                                  null=True)),
                ('archived', models.BooleanField(default=False)),
                ('deadline', models.DateField(null=True)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('assigned',
                 models.ManyToManyField(blank=True,
                                        to=settings.AUTH_USER_MODEL)),
                ('lists',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='board.List')),
            ],
        ),
        migrations.CreateModel(
            name='Progress',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('progress', models.IntegerField(default=0)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('ticket',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Ticket')),
            ],
        ),
        migrations.CreateModel(
            name='InviteToBoard',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('confirmed', models.BooleanField(default=False)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('board',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='board.Board')),
                ('invited_by',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='invited_by',
                     to=settings.AUTH_USER_MODEL)),
                ('user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='invited',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comment', models.TextField()),
                ('file',
                 models.FileField(
                     null=True,
                     upload_to=board.models.ticket_file_upload_path)),
                ('image',
                 models.ImageField(
                     null=True,
                     upload_to=board.models.ticket_image_file_upload_path)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('ticket',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Ticket')),
                ('user',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Checklist',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('done', models.BooleanField(default=False)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('progress',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Progress')),
            ],
        ),
        migrations.CreateModel(
            name='ActivityLog',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('activity', models.CharField(max_length=250)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('board',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.Board')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('board', '0018_auto_20181130_2109'),
    ]

    operations = [
        migrations.AlterField(
            model_name='freecomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='freeimages',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path, verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='noticecomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='noticeimages',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path, verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='noticepost',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='proposalcomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='proposalimages',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path, verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='proposalpost',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='reportcomment',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path),
        ),
        migrations.AlterField(
            model_name='reportimages',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=board.models.user_directory_path, verbose_name='Image'),
        ),
        migrations.AlterField(
            model_name='reportpost',
            name='image',
            field=models.ImageField(upload_to=board.models.user_directory_path),
        ),
    ]
Example #12
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='VideoGroup',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('group_name',
                 models.TextField(help_text='재생목록 제목', max_length=150)),
                ('public_status',
                 models.CharField(
                     choices=[('0', 'Nothing'), ('1', 'Public'),
                              ('2', 'Private'), ('3', 'Partial')],
                     default=0,
                     max_length=1,
                     validators=[board.models.validate_public_status])),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Video',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('video',
                 models.FileField(
                     upload_to='board/post/%Y/%m/%d/',
                     validators=[
                         django.core.validators.FileExtensionValidator(
                             allowed_extensions=[
                                 'avi', 'mp4', 'mkv', 'mpeg', 'webm'
                             ])
                     ])),
                ('author',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.RESTRICT,
                     related_name='video_author',
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['author'],
            },
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('title', models.CharField(max_length=100)),
                ('thumb_nail',
                 models.ImageField(
                     upload_to='board/post/%Y/%m/%d/',
                     validators=[
                         django.core.validators.FileExtensionValidator(
                             allowed_extensions=['png', 'jpg', 'jpeg'])
                     ])),
                ('description',
                 models.TextField(blank=True,
                                  help_text='시청자에게 동영상에 대해 알려주세요',
                                  max_length=5000)),
                ('views_count', models.PositiveBigIntegerField(default=0)),
                ('public_status',
                 models.CharField(
                     choices=[('0', 'Nothing'), ('1', 'Public'),
                              ('2', 'Private'), ('3', 'Partial')],
                     default=0,
                     max_length=1,
                     validators=[board.models.validate_public_status])),
                ('author',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.RESTRICT,
                     related_name='post_author',
                     to=settings.AUTH_USER_MODEL)),
                ('post_group',
                 models.ManyToManyField(blank=True, to='board.VideoGroup')),
                ('video',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='post_video',
                     to='board.video')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('message', models.TextField(max_length=300)),
                ('author',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.RESTRICT,
                     to=settings.AUTH_USER_MODEL)),
                ('post',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='board.post')),
            ],
            options={
                'ordering': ['-id'],
            },
        ),
    ]