0003_auto_20210507_1549.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Generated by Django 3.1.7 on 2021-05-07 15:49
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [
  5. ('files', '0002_fileblob_organizations'),
  6. ]
  7. operations = [
  8. migrations.RemoveField(
  9. model_name='fileblob',
  10. name='organizations',
  11. ),
  12. migrations.AddField(
  13. model_name='fileblob',
  14. name='size',
  15. field=models.PositiveIntegerField(null=True),
  16. ),
  17. migrations.AlterField(
  18. model_name='fileblob',
  19. name='id',
  20. field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
  21. ),
  22. migrations.CreateModel(
  23. name='File',
  24. fields=[
  25. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  26. ('created', models.DateTimeField(auto_now_add=True, db_index=True)),
  27. ('name', models.TextField()),
  28. ('headers', models.JSONField()),
  29. ('size', models.PositiveIntegerField(null=True)),
  30. ('checksum', models.CharField(db_index=True, max_length=40, null=True)),
  31. ('blobs', models.ManyToManyField(to='files.FileBlob')),
  32. ],
  33. options={
  34. 'abstract': False,
  35. },
  36. ),
  37. ]