0001_initial.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # Generated by Django 3.0.8 on 2020-07-16 07:00
  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='DailyReport',
  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,
  19. to=settings.AUTH_USER_MODEL)),
  20. ],
  21. options={
  22. 'verbose_name': '工作汇报',
  23. 'verbose_name_plural': '工作汇报表',
  24. 'db_table': 'workreport_daily',
  25. },
  26. ),
  27. ]