0001_initial.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  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='Log',
  10. fields=[
  11. ('id', models.CharField(default='TestLaboratory_V1_Log_1', max_length=50, primary_key=True, serialize=False, verbose_name='日志id')),
  12. ('action', models.CharField(max_length=100, verbose_name='操作名称')),
  13. ('entity_class', models.CharField(max_length=50, verbose_name='实体类型')),
  14. ('entity_name', models.CharField(max_length=50, null=True, verbose_name='实体名称')),
  15. ('method', models.CharField(max_length=30, verbose_name='操作方法')),
  16. ('executor_id', models.CharField(max_length=50, verbose_name='操作者id')),
  17. ('executor_username', models.CharField(max_length=50, verbose_name='操作者名称')),
  18. ('executor_identify', models.IntegerField(verbose_name='操作者身份')),
  19. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  20. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  21. ('delete', models.BooleanField(default=False)),
  22. ],
  23. options={
  24. 'verbose_name': '日志',
  25. 'verbose_name_plural': '日志',
  26. 'db_table': 'log',
  27. },
  28. ),
  29. ]