0001_initial.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # Generated by Django 3.2 on 2021-07-17 20:05
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. initial = True
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='FileManager',
  10. fields=[
  11. ('id', models.CharField(default='TestLaboratory_V1_File_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='文件id')),
  12. ('path', models.FilePathField(max_length=200, verbose_name='文件路径')),
  13. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  14. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  15. ('delete', models.BooleanField(default=False)),
  16. ('category', models.CharField(max_length=20, verbose_name='文件类型')),
  17. ],
  18. options={
  19. 'verbose_name': '文件管理',
  20. 'verbose_name_plural': '文件管理',
  21. 'db_table': 'file_manager',
  22. },
  23. ),
  24. ]