diff options
Diffstat (limited to 'ctrack/organisations/migrations/0009_auto_20200124_1623.py')
-rw-r--r-- | ctrack/organisations/migrations/0009_auto_20200124_1623.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0009_auto_20200124_1623.py b/ctrack/organisations/migrations/0009_auto_20200124_1623.py new file mode 100644 index 0000000..0b90de4 --- /dev/null +++ b/ctrack/organisations/migrations/0009_auto_20200124_1623.py @@ -0,0 +1,53 @@ +# Generated by Django 2.2.9 on 2020-01-24 16:23 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('organisations', '0008_auto_20200123_1657'), + ] + + operations = [ + migrations.CreateModel( + name='Role', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100)), + ], + ), + migrations.AlterField( + model_name='address', + name='county', + field=models.CharField(blank=True, max_length=100), + ), + migrations.AlterField( + model_name='address', + name='line2', + field=models.CharField(blank=True, max_length=255), + ), + migrations.AlterField( + model_name='address', + name='line3', + field=models.CharField(blank=True, max_length=255), + ), + migrations.AlterField( + model_name='address', + name='other_details', + field=models.CharField(blank=True, max_length=255), + ), + migrations.CreateModel( + name='Person', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=255)), + ('email', models.EmailField(max_length=254)), + ('mobile', models.CharField(max_length=20)), + ('landline', models.CharField(max_length=20)), + ('organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Organisation')), + ('role', models.ManyToManyField(to='organisations.Role')), + ], + ), + ] |