Django Library PyGal
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

0001_initial.py 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Generated by Django 2.2.5 on 2019-12-20 12:09
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  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='Item',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('rel_path', models.TextField(unique=True)),
  16. ('type', models.CharField(choices=[('audio', 'Audio'), ('folder', 'Folder'), ('image', 'Image'), ('other', 'Other'), ('video', 'Video')], max_length=25)),
  17. ('public_access', models.BooleanField(default=False)),
  18. ('uid_c', models.CharField(blank=True, max_length=50, null=True)),
  19. ('settings_c', models.IntegerField(blank=True, null=True)),
  20. ('data_version_c', models.IntegerField(blank=True, null=True)),
  21. ('size_c', models.IntegerField(blank=True, null=True)),
  22. ('datetime_c', models.DateTimeField(blank=True, null=True)),
  23. ('exposure_program_c', models.CharField(blank=True, max_length=100, null=True)),
  24. ('exposure_time_c', models.FloatField(blank=True, null=True)),
  25. ('flash_c', models.CharField(blank=True, max_length=100, null=True)),
  26. ('f_number_c', models.FloatField(blank=True, null=True)),
  27. ('focal_length_c', models.FloatField(blank=True, null=True)),
  28. ('lon_c', models.FloatField(blank=True, null=True)),
  29. ('lat_c', models.FloatField(blank=True, null=True)),
  30. ('height_c', models.IntegerField(blank=True, null=True)),
  31. ('iso_c', models.IntegerField(blank=True, null=True)),
  32. ('camera_vendor_c', models.CharField(blank=True, max_length=100, null=True)),
  33. ('camera_model_c', models.CharField(blank=True, max_length=100, null=True)),
  34. ('orientation_c', models.IntegerField(blank=True, null=True)),
  35. ('width_c', models.IntegerField(blank=True, null=True)),
  36. ('duration_c', models.FloatField(blank=True, null=True)),
  37. ('ratio_c', models.FloatField(blank=True, null=True)),
  38. ('album_c', models.CharField(blank=True, max_length=100, null=True)),
  39. ('artist_c', models.CharField(blank=True, max_length=100, null=True)),
  40. ('bitrate_c', models.IntegerField(blank=True, null=True)),
  41. ('genre_c', models.CharField(blank=True, max_length=100, null=True)),
  42. ('title_c', models.CharField(blank=True, max_length=100, null=True)),
  43. ('track_c', models.IntegerField(blank=True, null=True)),
  44. ('year_c', models.IntegerField(blank=True, null=True)),
  45. ('num_audio_c', models.IntegerField(blank=True, null=True)),
  46. ('num_folders_c', models.IntegerField(blank=True, null=True)),
  47. ('num_images_c', models.IntegerField(blank=True, null=True)),
  48. ('num_other_c', models.IntegerField(blank=True, null=True)),
  49. ('num_videos_c', models.IntegerField(blank=True, null=True)),
  50. ('sil_c', models.TextField(blank=True, null=True)),
  51. ('favourite_of', models.ManyToManyField(blank=True, related_name='favourite_of', to=settings.AUTH_USER_MODEL)),
  52. ('modify_access', models.ManyToManyField(blank=True, related_name='modify_access', to=settings.AUTH_USER_MODEL)),
  53. ('read_access', models.ManyToManyField(blank=True, related_name='read_access', to=settings.AUTH_USER_MODEL)),
  54. ],
  55. ),
  56. migrations.CreateModel(
  57. name='Setting',
  58. fields=[
  59. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  60. ('show_image', models.BooleanField(default=True)),
  61. ('show_video', models.BooleanField(default=True)),
  62. ('show_audio', models.BooleanField(default=False)),
  63. ('show_other', models.BooleanField(default=False)),
  64. ],
  65. ),
  66. migrations.CreateModel(
  67. name='Tag',
  68. fields=[
  69. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  70. ('text', models.CharField(max_length=100)),
  71. ('topleft_x', models.IntegerField(blank=True, null=True)),
  72. ('topleft_y', models.IntegerField(blank=True, null=True)),
  73. ('bottomright_x', models.IntegerField(blank=True, null=True)),
  74. ('bottomright_y', models.IntegerField(blank=True, null=True)),
  75. ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pygal.Item')),
  76. ],
  77. ),
  78. ]