1234567891011121314151617181920212223242526272829303132 |
- # Generated by Django 3.0.8 on 2020-07-16 07:00
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- class Migration(migrations.Migration):
- initial = True
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ]
- operations = [
- migrations.CreateModel(
- name='DailyReport',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('title', models.CharField(max_length=50)),
- ('content', models.TextField()),
- ('create_at', models.DateTimeField(auto_now=True)),
- ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE,
- to=settings.AUTH_USER_MODEL)),
- ],
- options={
- 'verbose_name': '工作汇报',
- 'verbose_name_plural': '工作汇报表',
- 'db_table': 'workreport_daily',
- },
- ),
- ]
|