houtmarkt-jeremy/markt/migrations/0002_auto_20200524_1448.py
2020-05-27 17:57:30 +00:00

119 lines
3.8 KiB
Python
Executable File

# Generated by Django 3.0.6 on 2020-05-24 17:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('markt', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='factuur',
options={'verbose_name_plural': 'Facturen'},
),
migrations.AlterModelOptions(
name='formaat',
options={'verbose_name_plural': 'Formaten'},
),
migrations.AlterModelOptions(
name='houtmarkt',
options={'verbose_name_plural': 'Houtmarkten'},
),
migrations.AlterModelOptions(
name='houtsoort',
options={'verbose_name_plural': 'Houtsoorten'},
),
migrations.AlterModelOptions(
name='klant',
options={'verbose_name_plural': 'Klanten'},
),
migrations.AlterModelOptions(
name='voorraad',
options={'verbose_name_plural': 'Voorraad'},
),
migrations.RenameField(
model_name='voorraad',
old_name='prijs',
new_name='Prijs',
),
migrations.RemoveField(
model_name='factuur',
name='AMT_Sold',
),
migrations.RemoveField(
model_name='factuur',
name='Houtmarkt_ID',
),
migrations.RemoveField(
model_name='factuur',
name='Voorraad_ID',
),
migrations.AlterField(
model_name='factuur',
name='Klant_ID',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Klant'),
),
migrations.AlterField(
model_name='houtmarkt',
name='Houtmarkt_type',
field=models.CharField(choices=[('RE', 'Reseller'), ('SE', 'Seller')], max_length=2),
),
migrations.AlterField(
model_name='voorraad',
name='Format_ID',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Formaat'),
),
migrations.AlterField(
model_name='voorraad',
name='Hout_ID',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Houtsoort'),
),
migrations.AlterField(
model_name='voorraad',
name='Houtmarkt_ID',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Houtmarkt'),
),
migrations.AlterModelTable(
name='factuur',
table='Factuur',
),
migrations.AlterModelTable(
name='formaat',
table='Formaat',
),
migrations.AlterModelTable(
name='houtmarkt',
table='Houtmarkt',
),
migrations.AlterModelTable(
name='houtsoort',
table='Houtsoort',
),
migrations.AlterModelTable(
name='klant',
table='Klant',
),
migrations.AlterModelTable(
name='voorraad',
table='Voorraad',
),
migrations.CreateModel(
name='Order',
fields=[
('Order_ID', models.AutoField(primary_key=True, serialize=False)),
('Amount', models.IntegerField()),
('Prijs', models.FloatField(blank=True, null=True)),
('Factuur_ID', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Factuur')),
('Voorraad_ID', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='markt.Voorraad')),
],
options={
'verbose_name_plural': 'Orders',
'db_table': 'Order',
},
),
]