diff options
Diffstat (limited to 'ctrack/organisations/migrations/0011_mode_submode.py')
-rw-r--r-- | ctrack/organisations/migrations/0011_mode_submode.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0011_mode_submode.py b/ctrack/organisations/migrations/0011_mode_submode.py new file mode 100644 index 0000000..de7ce5c --- /dev/null +++ b/ctrack/organisations/migrations/0011_mode_submode.py @@ -0,0 +1,29 @@ +# Generated by Django 2.2.9 on 2020-01-25 14:44 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('organisations', '0010_auto_20200124_1629'), + ] + + operations = [ + migrations.CreateModel( + name='Mode', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('descriptor', models.CharField(max_length=100)), + ], + ), + migrations.CreateModel( + name='Submode', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('descriptor', models.CharField(max_length=100)), + ('mode', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Mode')), + ], + ), + ] |