houtmarkt-jeremy/markt/migrations/0001_initial.py
2020-05-24 12:00:10 -03:00

75 lines
3.2 KiB
Python

# Generated by Django 3.0.6 on 2020-05-24 14:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Formaat',
fields=[
('Format_ID', models.AutoField(primary_key=True, serialize=False)),
('Formaat', models.CharField(help_text='Formaat (vb 2x4)', max_length=255)),
('Lengte', models.FloatField()),
],
),
migrations.CreateModel(
name='Houtmarkt',
fields=[
('Houtmarkt_ID', models.AutoField(primary_key=True, serialize=False)),
('Houtmarkt_naam', models.CharField(help_text='Houtmarkt naam', max_length=255)),
('Houtmarkt_tel', models.IntegerField()),
('Houtmarkt_addr', models.CharField(max_length=255)),
('Houtmarkt_type', models.BooleanField()),
],
),
migrations.CreateModel(
name='Houtsoort',
fields=[
('Hout_ID', models.AutoField(primary_key=True, serialize=False)),
('Houtsoort_naam', models.CharField(help_text='Houtsoort', max_length=255)),
],
),
migrations.CreateModel(
name='Klant',
fields=[
('Klant_ID', models.AutoField(primary_key=True, serialize=False)),
('Klant_naam', models.CharField(help_text='Klant naam', max_length=255)),
('Klant_tel', models.CharField(help_text='Klant telefoon nummer', max_length=255)),
('Klant_Addr', models.CharField(help_text='Klant Adres', max_length=255)),
('Is_Houtmarkt', models.BooleanField()),
],
),
migrations.CreateModel(
name='Voorraad',
fields=[
('Voorraad_ID', models.AutoField(primary_key=True, serialize=False)),
('prijs', models.FloatField()),
('Voorraad_Amount', models.IntegerField()),
('Format_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Formaat')),
('Hout_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Houtsoort')),
('Houtmarkt_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Houtmarkt')),
],
),
migrations.CreateModel(
name='Factuur',
fields=[
('Factuur_ID', models.AutoField(primary_key=True, serialize=False)),
('Korting_percent', models.FloatField()),
('AMT_Sold', models.IntegerField()),
('Subtotal', models.FloatField()),
('total', models.FloatField()),
('Houtmarkt_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Houtmarkt')),
('Klant_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Klant')),
('Voorraad_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='markt.Voorraad')),
],
),
]