0003_route2user.py 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Generated by Django 3.0.8 on 2020-08-03 06:06
  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. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('routes', '0002_auto_20200803_1041'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='Route2User',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('route', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='routes.Route')),
  16. ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  17. ],
  18. options={
  19. 'verbose_name': '用户对应路由关联表',
  20. 'verbose_name_plural': '用户对应路由关联表',
  21. 'db_table': 'Route2User',
  22. },
  23. ),
  24. ]