0001_initial.py 914 B

12345678910111213141516171819202122232425262728
  1. # Generated by Django 3.2.7 on 2021-09-08 15:01
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ('folder', '0001_initial'),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='File',
  12. fields=[
  13. ('file_id', models.AutoField(primary_key=True, serialize=False)),
  14. ('file_name', models.CharField(max_length=50)),
  15. ('file_path', models.CharField(max_length=128)),
  16. ('update_time', models.DateTimeField()),
  17. ('file_type', models.CharField(max_length=32)),
  18. ('file_size', models.CharField(max_length=16)),
  19. ('folder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='file_folder', to='folder.folder')),
  20. ],
  21. ),
  22. ]