Ejemplo n.º 1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('Youtube', '0002_auto_20180914_1818'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('Facebook', '0004_auto_20181003_0159'),
        ('Twitter', '0002_auto_20180914_1818'),
    ]

    operations = [
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=512)),
                ('created_on',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('created_by',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='created_collections',
                     to=settings.AUTH_USER_MODEL)),
                ('curators',
                 models.ManyToManyField(related_name='curated_collections',
                                        to=settings.AUTH_USER_MODEL)),
                ('facebook_pages',
                 models.ManyToManyField(related_name='collections_included_in',
                                        to='Facebook.FBPage')),
                ('followers',
                 models.ManyToManyField(related_name='followed_collections',
                                        to=settings.AUTH_USER_MODEL)),
                ('twitter_hashtags',
                 models.ManyToManyField(related_name='collections_included_in',
                                        to='Twitter.HashtagHarvester')),
                ('twitter_users',
                 models.ManyToManyField(related_name='collections_included_in',
                                        to='Twitter.TWUser')),
                ('youtube_channels',
                 models.ManyToManyField(related_name='collections_included_in',
                                        to='Youtube.YTChannel')),
                ('youtube_playlists',
                 models.ManyToManyField(related_name='collections_included_in',
                                        to='Youtube.YTPlaylist')),
            ],
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='description',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='favorite_tweet',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('ended', models.DateTimeField(null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='favourites_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='follower',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('ended', models.DateTimeField(null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='followers_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='friends_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Hashtag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('term', models.CharField(max_length=128, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='HashtagHarvester',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('_harvest_since', models.DateTimeField(blank=True, null=True)),
                ('_harvest_until', models.DateTimeField(blank=True, null=True)),
                ('_has_reached_begining', models.BooleanField(default=False)),
                ('_last_harvested', models.DateTimeField(blank=True, null=True)),
                ('hashtag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='harvesters', to='Twitter.Hashtag')),
            ],
        ),
        migrations.CreateModel(
            name='listed_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='name',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='retweet_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='screen_name',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='statuses_count',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='time_zone',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Tweet',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('_ident', models.BigIntegerField(unique=True)),
                ('coordinates', models.CharField(max_length=255, null=True)),
                ('created_at', models.DateTimeField(null=True)),
                ('deleted_at', models.DateTimeField(null=True)),
                ('text', models.TextField(max_length=255, null=True)),
                ('retweet_count', models.IntegerField(null=True)),
                ('possibly_sensitive', models.BooleanField(default=False)),
                ('source', models.CharField(max_length=255, null=True)),
                ('lang', models.CharField(max_length=128)),
                ('withheld_copyright', models.BooleanField(default=False)),
                ('withheld_in_countries', models.CharField(max_length=255)),
                ('withheld_scope', models.CharField(max_length=32)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_last_retweeter_harvested', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_error_on_retweet_harvest', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='TWPlace',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
                ('attributes', models.CharField(max_length=500, null=True)),
                ('bounding_box', models.CharField(max_length=500, null=True)),
                ('country', models.CharField(max_length=128, null=True)),
                ('full_name', models.CharField(max_length=255, null=True)),
                ('name', models.CharField(max_length=128, null=True)),
                ('place_type', models.CharField(max_length=128, null=True)),
                ('url', models.CharField(max_length=255, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='TWUrl',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('recorded_time', models.DateTimeField(default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TWUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('screen_name', models.CharField(blank=True, max_length=255, null=True, unique=True)),
                ('_ident', models.BigIntegerField(blank=True, null=True, unique=True)),
                ('created_at', models.DateTimeField(null=True)),
                ('geo_enabled', models.BooleanField(default=False)),
                ('has_extended_profile', models.BooleanField(default=False)),
                ('is_translation_enabled', models.BooleanField(default=False)),
                ('is_translator', models.BooleanField(default=False)),
                ('lang', models.CharField(max_length=50, null=True)),
                ('location', models.CharField(max_length=255)),
                ('profile_background_color', models.CharField(max_length=50)),
                ('profile_background_image_url', models.CharField(max_length=500, null=True)),
                ('profile_image_url', models.CharField(max_length=1024)),
                ('protected', models.BooleanField(default=False)),
                ('verified', models.BooleanField(default=False)),
                ('name', models.CharField(max_length=255, null=True)),
                ('time_zone', models.CharField(max_length=255, null=True)),
                ('url', models.CharField(max_length=255, null=True)),
                ('description', models.CharField(max_length=500, null=True)),
                ('statuses_count', models.IntegerField(null=True)),
                ('favourites_count', models.IntegerField(null=True)),
                ('followers_count', models.IntegerField(null=True)),
                ('friends_count', models.IntegerField(null=True)),
                ('listed_count', models.IntegerField(null=True)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_last_tweet_harvested', models.DateTimeField(null=True)),
                ('_last_friends_harvested', models.DateTimeField(null=True)),
                ('_last_followers_harvested', models.DateTimeField(null=True)),
                ('_last_fav_tweet_harvested', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_has_duplicate', models.BooleanField(default=False)),
                ('_error_on_harvest', models.BooleanField(default=False)),
                ('_error_on_network_harvest', models.BooleanField(default=False)),
                ('_update_frequency', models.IntegerField(default=5)),
                ('_harvest_frequency', models.IntegerField(default=1)),
                ('_network_harvest_frequency', models.IntegerField(default=1)),
                ('_has_reached_begining', models.BooleanField(default=False)),
            ],
        ),
        migrations.AddField(
            model_name='twurl',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='urls', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='contributors',
            field=models.ManyToManyField(related_name='contributed_to', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='harvested_by',
            field=models.ManyToManyField(related_name='harvested_tweets', to='Twitter.HashtagHarvester'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='hashtags',
            field=models.ManyToManyField(related_name='tweets', to='Twitter.Hashtag'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='in_reply_to_status',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replied_by', to='Twitter.Tweet'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='in_reply_to_user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replied_by', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='place',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Twitter.TWPlace'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='quoted_status',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='quoted_by', to='Twitter.Tweet'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='retweet_of',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='retweets', to='Twitter.Tweet'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tweets', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='tweet',
            name='user_mentions',
            field=models.ManyToManyField(related_name='mentions', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='time_zone',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='time_zones', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='statuses_count',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='statuses_counts', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='screen_name',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='screen_names', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='retweet_count',
            name='tweet',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='retweet_counts', to='Twitter.Tweet'),
        ),
        migrations.AddField(
            model_name='name',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='names', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='listed_count',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listed_counts', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='friends_count',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friends_counts', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='followers_count',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='followers_counts', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='follower',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='followers', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='follower',
            name='value',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friends', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='favourites_count',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='favourites_counts', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='favorite_tweet',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='favorite_tweets', to='Twitter.TWUser'),
        ),
        migrations.AddField(
            model_name='favorite_tweet',
            name='value',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='favorited_by', to='Twitter.Tweet'),
        ),
        migrations.AddField(
            model_name='description',
            name='twuser',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='descriptions', to='Twitter.TWUser'),
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('AspiraUser', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='checkins_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='comment_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='fan_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FBAccessToken',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_token', models.CharField(max_length=255)),
                ('expires', models.IntegerField(blank=True, null=True)),
                ('userProfile',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbAccessToken',
                     to='AspiraUser.UserProfile')),
            ],
        ),
        migrations.CreateModel(
            name='FBApplication',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBAttachment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('description', models.TextField(null=True)),
                ('imageUrl', models.CharField(max_length=1024, null=True)),
                ('targetUrl', models.CharField(max_length=1024, null=True)),
                ('title', models.CharField(max_length=512, null=True)),
                ('type', models.CharField(max_length=32, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBComment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
                ('created_time', models.DateTimeField(null=True)),
                ('deleted_time', models.DateTimeField(null=True)),
                ('message', models.TextField(null=True)),
                ('permalink_url', models.CharField(max_length=1024,
                                                   null=True)),
                ('comment_count', models.IntegerField(null=True)),
                ('like_count', models.IntegerField(null=True)),
                ('last_reaction_harvested', models.DateTimeField(null=True)),
                ('last_comments_harvested', models.DateTimeField(null=True)),
                ('last_updated', models.DateTimeField(null=True)),
                ('error_on_update', models.BooleanField(default=False)),
                ('error_on_harvest', models.BooleanField(default=False)),
                ('attachment',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbComments',
                     to='Facebook.FBAttachment')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FBEvent',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBGroup',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBLocation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('city', models.CharField(max_length=255, null=True)),
                ('country', models.CharField(max_length=255, null=True)),
                ('latitude', models.FloatField(null=True)),
                ('longitude', models.FloatField(null=True)),
                ('state', models.CharField(max_length=16, null=True)),
                ('street', models.CharField(max_length=512, null=True)),
                ('zip', models.CharField(max_length=255, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBPage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=225, unique=True)),
                ('category', models.CharField(max_length=128)),
                ('name', models.CharField(max_length=128, null=True)),
                ('username', models.CharField(max_length=64, null=True)),
                ('about', models.TextField(null=True)),
                ('cover', models.CharField(max_length=512, null=True)),
                ('current_location', models.CharField(max_length=512,
                                                      null=True)),
                ('description_html', models.TextField(null=True)),
                ('emails', models.CharField(max_length=2048, null=True)),
                ('general_info', models.TextField(null=True)),
                ('link', models.CharField(max_length=4096, null=True)),
                ('members', models.TextField(null=True)),
                ('is_community_page', models.BooleanField(default=False)),
                ('is_unclaimed', models.BooleanField(default=False)),
                ('is_verified', models.BooleanField(default=False)),
                ('phone', models.CharField(max_length=256, null=True)),
                ('verification_status',
                 models.CharField(max_length=64, null=True)),
                ('website', models.CharField(max_length=512, null=True)),
                ('checkins', models.IntegerField(null=True)),
                ('fan_count', models.IntegerField(null=True)),
                ('overall_star_rating', models.FloatField(null=True)),
                ('rating_count', models.IntegerField(null=True)),
                ('talking_about_count', models.IntegerField(null=True)),
                ('were_here_count', models.IntegerField(null=True)),
                ('birthday', models.CharField(max_length=128, null=True)),
                ('affiliation', models.CharField(max_length=225, null=True)),
                ('personal_info', models.TextField(null=True)),
                ('personal_interests', models.TextField(null=True)),
                ('built', models.CharField(max_length=64, null=True)),
                ('features', models.TextField(null=True)),
                ('mpg', models.CharField(max_length=256, null=True)),
                ('company_overview', models.TextField(null=True)),
                ('mission', models.TextField(null=True)),
                ('products', models.TextField(null=True)),
                ('founded', models.TextField(null=True)),
                ('general_manager', models.CharField(max_length=256,
                                                     null=True)),
                ('price_range', models.CharField(max_length=16, null=True)),
                ('hours', models.TextField(null=True)),
                ('pharma_safety_info', models.TextField(null=True)),
                ('is_permanently_closed', models.BooleanField(default=False)),
                ('is_always_open', models.BooleanField(default=False)),
                ('network', models.CharField(max_length=512, null=True)),
                ('schedule', models.TextField(null=True)),
                ('season', models.CharField(max_length=64, null=True)),
                ('written_by', models.CharField(max_length=512, null=True)),
                ('awards', models.TextField(null=True)),
                ('directed_by', models.TextField(null=True)),
                ('genre', models.TextField(null=True)),
                ('plot_outline', models.TextField(null=True)),
                ('produced_by', models.TextField(null=True)),
                ('release_date', models.CharField(max_length=64, null=True)),
                ('screenplay_by', models.TextField(null=True)),
                ('starring', models.TextField(null=True)),
                ('studio', models.TextField(null=True)),
                ('artists_we_like', models.TextField(null=True)),
                ('band_interests', models.TextField(null=True)),
                ('band_members', models.CharField(max_length=4096, null=True)),
                ('bio', models.TextField(null=True)),
                ('booking_agent', models.TextField(null=True)),
                ('hometown', models.TextField(null=True)),
                ('influences', models.TextField(null=True)),
                ('press_contact', models.TextField(null=True)),
                ('record_label', models.TextField(null=True)),
                ('last_updated', models.DateTimeField(null=True)),
                ('error_on_update', models.BooleanField(default=False)),
                ('error_on_harvest', models.BooleanField(default=False)),
                ('last_feed_harvested', models.DateTimeField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBPhoto',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBPost',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
                ('admin_creator', models.CharField(max_length=128, null=True)),
                ('caption', models.CharField(max_length=1024, null=True)),
                ('created_time', models.DateTimeField(null=True)),
                ('deleted_time', models.DateTimeField(null=True)),
                ('description', models.TextField(null=True)),
                ('is_hidden', models.BooleanField(default=False)),
                ('is_instagram_eligible', models.BooleanField(default=False)),
                ('link', models.CharField(max_length=4096, null=True)),
                ('message', models.TextField(null=True)),
                ('story', models.CharField(max_length=512, null=True)),
                ('name', models.CharField(max_length=256, null=True)),
                ('object_id', models.CharField(max_length=128, null=True)),
                ('permalink_url', models.CharField(max_length=256, null=True)),
                ('picture', models.CharField(max_length=2048, null=True)),
                ('source', models.CharField(max_length=1024, null=True)),
                ('status_type', models.CharField(max_length=64, null=True)),
                ('type', models.CharField(max_length=64, null=True)),
                ('updated_time', models.DateTimeField(null=True)),
                ('share_count', models.IntegerField(null=True)),
                ('like_count', models.IntegerField(null=True)),
                ('comment_count', models.IntegerField(null=True)),
                ('last_updated', models.DateTimeField(null=True)),
                ('error_on_update', models.BooleanField(default=False)),
                ('error_on_harvest', models.BooleanField(default=False)),
                ('last_comments_harvested', models.DateTimeField(null=True)),
                ('last_reaction_harvested', models.DateTimeField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=225, unique=True)),
                ('type', models.CharField(max_length=1)),
                ('deleted_at', models.DateTimeField(null=True)),
                ('fbApplication',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbProfile',
                     to='Facebook.FBApplication')),
                ('fbEvent',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbProfile',
                     to='Facebook.FBEvent')),
                ('fbGroup',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbProfile',
                     to='Facebook.FBGroup')),
                ('fbPage',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbProfile',
                     to='Facebook.FBPage')),
                ('fbPhoto',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='fbProfile',
                     to='Facebook.FBPhoto')),
            ],
        ),
        migrations.CreateModel(
            name='FBReaction',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('type', models.CharField(default='LIKE', max_length=10)),
                ('from_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('until_time', models.DateTimeField(null=True)),
                ('from_profile',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='reacted_to',
                                   to='Facebook.FBProfile')),
                ('to_comment',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='reactions',
                                   to='Facebook.FBComment')),
                ('to_post',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='reactions',
                                   to='Facebook.FBPost')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FBUser',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=225, unique=True)),
                ('name', models.CharField(max_length=256, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='FBVideo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=255, unique=True)),
                ('description', models.TextField(null=True)),
                ('updated_time', models.DateTimeField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='like_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
                ('fbComment',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='like_counts',
                                   to='Facebook.FBComment')),
                ('fbPost',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='like_counts',
                                   to='Facebook.FBPost')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='overall_star_rating_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.FloatField()),
                ('fbPage',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='overall_star_rating_counts',
                                   to='Facebook.FBPage')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='rating_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
                ('fbPage',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='rating_counts',
                                   to='Facebook.FBPage')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='share_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
                ('fbPost',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='share_counts',
                                   to='Facebook.FBPost')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='talking_about_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
                ('fbPage',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='talking_about_counts',
                                   to='Facebook.FBPage')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='were_here_count',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
                ('fbPage',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='were_here_counts',
                                   to='Facebook.FBPage')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='fbprofile',
            name='fbUser',
            field=models.OneToOneField(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fbProfile',
                to='Facebook.FBUser'),
        ),
        migrations.AddField(
            model_name='fbprofile',
            name='fbVideo',
            field=models.OneToOneField(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fbProfile',
                to='Facebook.FBVideo'),
        ),
        migrations.AddField(
            model_name='fbpost',
            name='from_profile',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='postedStatuses',
                to='Facebook.FBProfile'),
        ),
        migrations.AddField(
            model_name='fbpost',
            name='message_tags',
            field=models.ManyToManyField(related_name='taggedInPostMessages',
                                         to='Facebook.FBProfile'),
        ),
        migrations.AddField(
            model_name='fbpost',
            name='parent_post',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='child_posts',
                to='Facebook.FBPost'),
        ),
        migrations.AddField(
            model_name='fbpost',
            name='to_profiles',
            field=models.ManyToManyField(related_name='targetedByStatuses',
                                         to='Facebook.FBProfile'),
        ),
        migrations.AddField(
            model_name='fbpage',
            name='featured_video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='featured_on_pages',
                to='Facebook.FBVideo'),
        ),
        migrations.AddField(
            model_name='fbpage',
            name='location',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='Facebook.FBLocation'),
        ),
        migrations.AddField(
            model_name='fbpage',
            name='parent_page',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='Facebook.FBPage'),
        ),
        migrations.AddField(
            model_name='fbcomment',
            name='from_profile',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='posted_comments',
                to='Facebook.FBProfile'),
        ),
        migrations.AddField(
            model_name='fbcomment',
            name='parentComment',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fbReplies',
                to='Facebook.FBComment'),
        ),
        migrations.AddField(
            model_name='fbcomment',
            name='parentPost',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fbComments',
                to='Facebook.FBPost'),
        ),
        migrations.AddField(
            model_name='fan_count',
            name='fbPage',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fan_counts',
                to='Facebook.FBPage'),
        ),
        migrations.AddField(
            model_name='comment_count',
            name='fbComment',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='comment_counts',
                to='Facebook.FBComment'),
        ),
        migrations.AddField(
            model_name='comment_count',
            name='fbPost',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='comment_counts',
                to='Facebook.FBPost'),
        ),
        migrations.AddField(
            model_name='checkins_count',
            name='fbPage',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='checkins_counts',
                to='Facebook.FBPage'),
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Image_time_label',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('url', models.CharField(max_length=1024)),
                ('location_on_disc', models.CharField(max_length=1024)),
                ('title', models.CharField(max_length=128)),
                ('description', models.CharField(max_length=1024)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Video_time_label',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('url', models.CharField(max_length=1024)),
                ('location_on_disc', models.CharField(max_length=1024)),
                ('title', models.CharField(max_length=128)),
                ('description', models.CharField(max_length=1024)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Website_time_label',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('SocialNetworkHarvester', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CommentCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ContentImage',
            fields=[
                ('image_time_label_ptr',
                 models.OneToOneField(
                     auto_created=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     parent_link=True,
                     primary_key=True,
                     serialize=False,
                     to='SocialNetworkHarvester.Image_time_label')),
            ],
            options={
                'abstract': False,
            },
            bases=('SocialNetworkHarvester.image_time_label', ),
        ),
        migrations.CreateModel(
            name='DislikeCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='FavoriteCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='LikeCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='SubscriberCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Subscription',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('ended', models.DateTimeField(null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='VideoCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.IntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ViewCount',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recorded_time',
                 models.DateTimeField(
                     default=SocialNetworkHarvester.models.djangoNow)),
                ('value', models.BigIntegerField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='YTChannel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident',
                 models.CharField(max_length=128, null=True, unique=True)),
                ('userName', models.CharField(max_length=32, null=True)),
                ('description', models.CharField(max_length=8192, null=True)),
                ('keywords', models.CharField(max_length=1000, null=True)),
                ('profileColor', models.CharField(max_length=16, null=True)),
                ('title', models.CharField(max_length=512, null=True)),
                ('publishedAt', models.DateTimeField(null=True)),
                ('hiddenSubscriberCount', models.BooleanField(default=False)),
                ('isLinked', models.BooleanField(default=False)),
                ('privacyStatus', models.CharField(max_length=32, null=True)),
                ('commentCount', models.BigIntegerField(null=True)),
                ('subscriberCount', models.BigIntegerField(null=True)),
                ('videoCount', models.IntegerField(null=True)),
                ('viewCount', models.BigIntegerField(null=True)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_last_video_harvested', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_error_on_harvest', models.BooleanField(default=False)),
                ('_update_frequency', models.IntegerField(default=1)),
                ('_harvest_frequency', models.IntegerField(default=1)),
                ('_has_reached_begining', models.BooleanField(default=False)),
                ('_error_on_comment_harvest',
                 models.BooleanField(default=False)),
                ('_last_comment_harvested', models.DateTimeField(null=True)),
                ('_earliest_comment_page_token',
                 models.CharField(max_length=512, null=True)),
                ('_has_reached_comments_begining',
                 models.BooleanField(default=False)),
                ('_last_subs_harvested', models.DateTimeField(null=True)),
                ('_public_subscriptions', models.BooleanField(default=True)),
                ('_last_playlists_harvested', models.DateTimeField(null=True)),
                ('_deleted_at', models.DateTimeField(null=True)),
                ('featuredChannel',
                 models.ManyToManyField(
                     related_name='_ytchannel_featuredChannel_+',
                     to='Youtube.YTChannel')),
            ],
        ),
        migrations.CreateModel(
            name='YTComment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=128, unique=True)),
                ('text', models.CharField(max_length=8192, null=True)),
                ('text_truncated', models.BooleanField(default=False)),
                ('publishedAt', models.DateTimeField(null=True)),
                ('updatedAt', models.DateTimeField(null=True)),
                ('likeCount', models.BigIntegerField(default=0)),
                ('numberOfReplies', models.IntegerField(default=0)),
                ('_deleted_at', models.DateTimeField(null=True)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_update_frequency', models.IntegerField(default=2)),
                ('author',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='posted_comments',
                                   to='Youtube.YTChannel')),
                ('channel_target',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='comments',
                                   to='Youtube.YTChannel')),
                ('parent_comment',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='replies',
                                   to='Youtube.YTComment')),
            ],
        ),
        migrations.CreateModel(
            name='YTPlaylist',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=64, unique=True)),
                ('title', models.CharField(max_length=256, null=True)),
                ('description', models.CharField(max_length=4096, null=True)),
                ('publishedAt', models.DateTimeField(null=True)),
                ('deleted_at', models.DateTimeField(null=True)),
                ('privacy_status', models.CharField(max_length=32, null=True)),
                ('video_count', models.IntegerField(null=True)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_last_video_harvested', models.DateTimeField(null=True)),
                ('_error_on_harvest', models.BooleanField(default=False)),
                ('channel',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='playlists',
                                   to='Youtube.YTChannel')),
            ],
        ),
        migrations.CreateModel(
            name='YTPlaylistItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('playlistOrder', models.IntegerField(null=True)),
                ('playlist',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='items',
                                   to='Youtube.YTPlaylist')),
            ],
        ),
        migrations.CreateModel(
            name='YTVideo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('_ident', models.CharField(max_length=128, unique=True)),
                ('publishedAt', models.DateTimeField(null=True)),
                ('title', models.CharField(max_length=128, null=True)),
                ('description', models.CharField(max_length=8192, null=True)),
                ('contentRating_raw',
                 models.CharField(max_length=2048, null=True)),
                ('privacyStatus', models.CharField(max_length=32, null=True)),
                ('publicStatsViewable', models.BooleanField(default=True)),
                ('recordingLocation',
                 models.CharField(max_length=256, null=True)),
                ('streamStartTime', models.DateTimeField(null=True)),
                ('streamEndTime', models.DateTimeField(null=True)),
                ('streamConcurrentViewers', models.IntegerField(null=True)),
                ('view_count', models.IntegerField(null=True)),
                ('like_count', models.IntegerField(null=True)),
                ('dislike_count', models.IntegerField(null=True)),
                ('favorite_count', models.IntegerField(null=True)),
                ('comment_count', models.IntegerField(null=True)),
                ('_deleted_at', models.DateTimeField(null=True)),
                ('_last_updated', models.DateTimeField(null=True)),
                ('_error_on_update', models.BooleanField(default=False)),
                ('_update_frequency', models.IntegerField(default=1)),
                ('_file_path', models.CharField(max_length=512, null=True)),
                ('channel',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='videos',
                                   to='Youtube.YTChannel')),
            ],
        ),
        migrations.AddField(
            model_name='ytplaylistitem',
            name='video',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='playlistsSpots',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='ytcomment',
            name='video_target',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='comments',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='viewcount',
            name='channel',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='view_counts',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='viewcount',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='view_counts',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='videocount',
            name='channel',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='video_counts',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='subscription',
            name='channel',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='subscriptions',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='subscription',
            name='value',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='subscribers',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='subscribercount',
            name='channel',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='subscriber_counts',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='likecount',
            name='comment',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='like_counts',
                to='Youtube.YTComment'),
        ),
        migrations.AddField(
            model_name='likecount',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='like_counts',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='favoritecount',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='favorite_counts',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='dislikecount',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='dislike_counts',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='contentimage',
            name='channel',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='images',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='contentimage',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='images',
                to='Youtube.YTVideo'),
        ),
        migrations.AddField(
            model_name='commentcount',
            name='channel',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='comment_counts',
                to='Youtube.YTChannel'),
        ),
        migrations.AddField(
            model_name='commentcount',
            name='video',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='comment_counts',
                to='Youtube.YTVideo'),
        ),
    ]