1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-28 16:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dispatch', '0002_auto_20170628_1516'),
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=256)),
('address', models.CharField(max_length=256)),
('phone_number', models.DecimalField(decimal_places=0, max_digits=16)),
('email_address', models.CharField(max_length=256)),
],
),
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=64)),
('last_name', models.CharField(max_length=64)),
('phone_number', models.DecimalField(decimal_places=0, max_digits=16)),
('email_address', models.CharField(max_length=256)),
('the_company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dispatch.Company')),
],
),
migrations.AlterField(
model_name='load',
name='company',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='dispatch.Company'),
),
migrations.AddField(
model_name='company',
name='primary_contact',
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='dispatch.Contact'),
),
]
|