0001_initial.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # Generated by Django 3.0.8 on 2020-07-24 07:47
  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='DailyRreport',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('title', models.CharField(max_length=50)),
  16. ('content', models.TextField()),
  17. ('create_at', models.DateTimeField(auto_now=True)),
  18. ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  19. ],
  20. options={
  21. 'verbose_name': '工作汇报',
  22. 'verbose_name_plural': '工作汇报表',
  23. 'db_table': 'workreport_daily',
  24. },
  25. ),
  26. ]