# Generated by Django 3.0.5 on 2022-11-16 06:46

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('vod', '0006_viewrecord_total_seconds'),
    ]

    operations = [
        migrations.AlterField(
            model_name='video',
            name='views',
            field=models.IntegerField(default=0, verbose_name='总观看次数'),
        ),
        migrations.AlterField(
            model_name='video',
            name='viewsp',
            field=models.IntegerField(default=0, verbose_name='总观看人数'),
        ),
        migrations.AlterField(
            model_name='viewrecord',
            name='video',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='viewrecord_video', to='vod.Video', verbose_name='点播视频'),
        ),
        migrations.AlterField(
            model_name='viewrecord',
            name='views',
            field=models.IntegerField(default=0, verbose_name='总观看次数'),
        ),
        migrations.CreateModel(
            name='ViewItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('current', models.IntegerField(default=0, verbose_name='当前观看进度(秒)')),
                ('total_seconds', models.PositiveIntegerField(default=0, verbose_name='本次总观看秒数')),
                ('create_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='viewitem_user', to=settings.AUTH_USER_MODEL, verbose_name='观看人')),
                ('video', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='viewitem_video', to='vod.Video', verbose_name='点播视频')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='View2',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('current', models.IntegerField(default=0, verbose_name='当前观看进度(秒)')),
                ('views', models.IntegerField(default=0, verbose_name='总观看次数')),
                ('total_seconds', models.PositiveIntegerField(default=0, verbose_name='总观看秒数')),
                ('is_completed', models.BooleanField(default=False)),
                ('create_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='view2_user', to=settings.AUTH_USER_MODEL, verbose_name='观看人')),
                ('video', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='view2_video', to='vod.Video', verbose_name='点播视频')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='View1',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('views', models.IntegerField(default=0, verbose_name='总观看次数')),
                ('viewsp', models.IntegerField(default=0, verbose_name='总观看人数')),
                ('video', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='view1_video', to='vod.Video')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
