diff options
author | workmai <iain.workman@lightsource.ca> | 2018-10-04 12:14:39 -0600 |
---|---|---|
committer | workmai <iain.workman@lightsource.ca> | 2018-10-04 12:14:39 -0600 |
commit | 12d1f9fd979c11b9e3a3a89b1595b07569b88f79 (patch) | |
tree | af591040768b104f4bb840a21a92968848a0ffe6 /procurement/migrations | |
download | coding-assignment-12d1f9fd979c11b9e3a3a89b1595b07569b88f79.zip coding-assignment-12d1f9fd979c11b9e3a3a89b1595b07569b88f79.tar.gz coding-assignment-12d1f9fd979c11b9e3a3a89b1595b07569b88f79.tar.bz2 |
Initial commit of the coding assignment base project
Diffstat (limited to 'procurement/migrations')
-rw-r--r-- | procurement/migrations/0001_initial.py | 47 | ||||
-rw-r--r-- | procurement/migrations/__init__.py | 0 |
2 files changed, 47 insertions, 0 deletions
diff --git a/procurement/migrations/0001_initial.py b/procurement/migrations/0001_initial.py new file mode 100644 index 0000000..ffabc0e --- /dev/null +++ b/procurement/migrations/0001_initial.py @@ -0,0 +1,47 @@ +# Generated by Django 2.1.2 on 2018-10-02 14:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Component', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('updated', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('sku', models.CharField(max_length=50)), + ], + options={ + 'ordering': ('name',), + }, + ), + migrations.CreateModel( + name='Supplier', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('updated', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('representative_name', models.CharField(blank=True, max_length=255, null=True)), + ('representative_email', models.EmailField(blank=True, max_length=255, null=True)), + ('is_authorized', models.BooleanField()), + ], + options={ + 'abstract': False, + }, + ), + migrations.AddField( + model_name='component', + name='suppliers', + field=models.ManyToManyField(blank=True, related_name='components', to='procurement.Supplier'), + ), + ] diff --git a/procurement/migrations/__init__.py b/procurement/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/procurement/migrations/__init__.py |