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
|
# 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'),
),
]
|