0001_initial.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Generated by Django 3.2.6 on 2021-12-04 01:50
  2. import django.db.models.deletion
  3. from django.conf import settings
  4. from django.db import migrations, models
  5. class Migration(migrations.Migration):
  6. initial = True
  7. dependencies = [
  8. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='Untube',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('page_likes', models.IntegerField(default=0)),
  16. ],
  17. ),
  18. migrations.CreateModel(
  19. name='Profile',
  20. fields=[
  21. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  22. ('created_at', models.DateTimeField(auto_now_add=True)),
  23. ('updated_at', models.DateTimeField(auto_now=True)),
  24. ('robohash_set', models.IntegerField(default=3)),
  25. ('user_summary', models.CharField(default='I think my arm is on backward.', max_length=300)),
  26. ('user_location', models.CharField(default='Hell, Earth', max_length=100)),
  27. ('open_search_new_tab', models.BooleanField(default=True)),
  28. ('enable_gradient_bg', models.BooleanField(default=False)),
  29. ('hide_unavailable_videos', models.BooleanField(default=True)),
  30. ('confirm_before_deleting', models.BooleanField(default=True)),
  31. ('show_import_page', models.BooleanField(default=True)),
  32. ('yt_channel_id', models.TextField(default='')),
  33. ('import_in_progress', models.BooleanField(default=False)),
  34. ('imported_yt_playlists', models.BooleanField(default=False)),
  35. ('access_token', models.TextField(default='')),
  36. ('refresh_token', models.TextField(default='')),
  37. ('expires_at', models.DateTimeField(blank=True, null=True)),
  38. ('manage_playlists_import_textarea', models.TextField(default='')),
  39. ('create_playlist_name', models.CharField(default='', max_length=50)),
  40. ('create_playlist_desc', models.CharField(default='', max_length=50)),
  41. ('create_playlist_type', models.CharField(default='', max_length=50)),
  42. ('create_playlist_add_vids_from_collection', models.CharField(default='', max_length=50)),
  43. ('create_playlist_add_vids_from_links', models.CharField(default='', max_length=50)),
  44. (
  45. 'untube_user',
  46. models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)
  47. ),
  48. ],
  49. ),
  50. ]