From ce1080d7f2b45a41321c13a29d4bdd07c72b6058 Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Sun, 24 May 2020 12:00:10 -0300 Subject: [PATCH] Made models --- db.sqlite3 | Bin 0 -> 184320 bytes houtmarkt/__init__.py | 0 houtmarkt/__pycache__/__init__.cpython-38.pyc | Bin 0 -> 184 bytes houtmarkt/__pycache__/settings.cpython-38.pyc | Bin 0 -> 2355 bytes houtmarkt/__pycache__/urls.cpython-38.pyc | Bin 0 -> 1308 bytes houtmarkt/__pycache__/wsgi.cpython-38.pyc | Bin 0 -> 591 bytes houtmarkt/asgi.py | 16 +++ houtmarkt/settings.py | 121 ++++++++++++++++++ houtmarkt/urls.py | 36 ++++++ houtmarkt/wsgi.py | 16 +++ manage.py | 21 +++ markt/__init__.py | 0 markt/__pycache__/__init__.cpython-38.pyc | Bin 0 -> 180 bytes markt/__pycache__/admin.cpython-38.pyc | Bin 0 -> 457 bytes markt/__pycache__/models.cpython-38.pyc | Bin 0 -> 3998 bytes markt/__pycache__/urls.cpython-38.pyc | Bin 0 -> 270 bytes markt/__pycache__/views.cpython-38.pyc | Bin 0 -> 224 bytes markt/admin.py | 9 ++ markt/apps.py | 5 + markt/migrations/0001_initial.py | 74 +++++++++++ markt/migrations/__init__.py | 0 .../__pycache__/0001_initial.cpython-38.pyc | Bin 0 -> 1853 bytes .../__pycache__/__init__.cpython-38.pyc | Bin 0 -> 191 bytes markt/models.py | 102 +++++++++++++++ markt/tests.py | 3 + markt/urls.py | 6 + markt/views.py | 3 + 27 files changed, 412 insertions(+) create mode 100644 db.sqlite3 create mode 100644 houtmarkt/__init__.py create mode 100644 houtmarkt/__pycache__/__init__.cpython-38.pyc create mode 100644 houtmarkt/__pycache__/settings.cpython-38.pyc create mode 100644 houtmarkt/__pycache__/urls.cpython-38.pyc create mode 100644 houtmarkt/__pycache__/wsgi.cpython-38.pyc create mode 100644 houtmarkt/asgi.py create mode 100644 houtmarkt/settings.py create mode 100644 houtmarkt/urls.py create mode 100644 houtmarkt/wsgi.py create mode 100644 manage.py create mode 100644 markt/__init__.py create mode 100644 markt/__pycache__/__init__.cpython-38.pyc create mode 100644 markt/__pycache__/admin.cpython-38.pyc create mode 100644 markt/__pycache__/models.cpython-38.pyc create mode 100644 markt/__pycache__/urls.cpython-38.pyc create mode 100644 markt/__pycache__/views.cpython-38.pyc create mode 100644 markt/admin.py create mode 100644 markt/apps.py create mode 100644 markt/migrations/0001_initial.py create mode 100644 markt/migrations/__init__.py create mode 100644 markt/migrations/__pycache__/0001_initial.cpython-38.pyc create mode 100644 markt/migrations/__pycache__/__init__.cpython-38.pyc create mode 100644 markt/models.py create mode 100644 markt/tests.py create mode 100644 markt/urls.py create mode 100644 markt/views.py diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..e5ff86ed3733901f6142946cdb7a9e68509ec5d4 GIT binary patch literal 184320 zcmeI5du$v@UdN|B<7toQ(TK|}AP#ga5-;6x2<~*cL*j7=#Nz~r<00K1 z2o9*Ku71vp?ad~_oBc-G+U}}f{pwqvdURJ+Cv*AIQl+IUYxTy4)>1OQA)g@lKAs;b$QHpYF6ndseRJh)Mi5ZFX`>@+u;-8-w1t0{6^@f zg1^(h9{6GZKlXjA@1pP{zAyH2wAc9dbHk#1V_Il8E48wIOWSH)Q@5IWLtSsww>F!` zb){_Fs^lU!o5?0i$&$KNtGw7dh#pTXS zab+^jgjLG%lS-V)BYNVA_UQwnyq*)9a-FG`5}8rA_QqwU-x%ZrhsnA5R7%^Kw*_ zZ%+x^lHDYBmW~2S^|D^mHgq+a(u$e+tY)`{oh#P68Em6Hy54h5NDG+a;)(57Bchzo z3wNJtX~n8BPTA;Zfi0qG&n@1RD6hn7{`sYXb3XAJQmkYmQ7WWC*Y$?7d~sD-zOuBW zytJ}-A-{4}IbXP{hNx}*jpKi?POS#r>BLx2R&%n2y*~6?jyZ08p-<#o-s%4 ztyP%q9+BO7G9=0)Bf>|<+{moXH`oKxJ<-|Jn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 0000000..e69de29 diff --git a/houtmarkt/__pycache__/__init__.cpython-38.pyc b/houtmarkt/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..33d23450176929ab1ebae0f71184e4e2d9366e73 GIT binary patch literal 184 zcmWIL<>g`kg5rWxaUl9Jh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o11@*(xTqIJKxa z#y7FJII}F(u_QmYIL0NlIJ+djASSmorzA5cGcUa~F(16lhSh#3IdFf&a6 literal 0 HcmV?d00001 diff --git a/houtmarkt/__pycache__/settings.cpython-38.pyc b/houtmarkt/__pycache__/settings.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a221595ca72bacb7fa95a81bf5ec2121f68454b8 GIT binary patch literal 2355 zcmb7FTXWM!6t)$`c1#>X!mU7ydZCa~WFRzUm<~nQO7P&@L^f$PDH_>lBd?>2qg^FL zzlDeL*oXd+PJe-3`_wy2A6X(z!@Np9D zEXlwpZv?phTA*ot5hVB&H6{2gp`R!83!1h>{T$rTm*7i%8FM+0-v#_G!cF}W2wH08 zmMN!GseHL_x|Sy~!Z~#)bj%FnEo!82ENxPT`uSI8^k5P$q7iEL+K_YR(DKr zs4FpU`h28$QwkXRkw$J;<-774TCby5$McCqT@2uuoO-T=Ki;DllG@~J%z)&3oDbNe zViCM9lZP>mGU$3vk+?;4SmfS-c3JT#<>Jsi?-6Myux-hvj7#3m@sdmzFc6`>v~Su0 zVgDzVPj)5({fQt*)x-Pl{hqPLzu9vK55xUka_fe9W6)c9)ql`?cyN2yvL37rY`E*+ zf9XQkA*;k*YlY{B>yf*j%YE9BliG#L)7*gf!mCrv*o3&89}Wl$FHH#lpIW`emj+mi4~m8L%}%~k9HH#O&Cru;;3Ge#!un3!Wcl%~{7lAMTu(>V1-|uLenRE*d08)J<=T`HLmCfJjay| zSErQ6Rs4X#k!(ebvQL%LbG2U9#d2j+i*ib{X(Xd;quHu7>RNc^xL^m&qOv&{V4agq zjIuy>%)sVjXhY|?er(UCoUDd`dRGb@Yz)A333J|V+WoO z2A&lZl5ldH5nthP*9M$u)SE+3~_$5l?t*pyJBqC~FvaI2%SJcq|eJ zChy^9P~Sz&M_IGO5>C!A;?u=2^xRWLQ{#<|@|s%OR9nV#^~Y$otUhgTLCkpo*wp}J{7jLX>2k}a6JR$!oWt!g+$TmySDZXJjB?*O z9t1XdjJI}*?IRKAb2Hbn;*2PW86iFKz7@|*%+kVJF)xY;(KvX%*MR= Ve{ft7Qpgog(7(iGj4^yO{{lZxBM<-p literal 0 HcmV?d00001 diff --git a/houtmarkt/__pycache__/urls.cpython-38.pyc b/houtmarkt/__pycache__/urls.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ac84431913bbbe4f40b54b58e24fba1a4d17bb00 GIT binary patch literal 1308 zcma)6&2H056t*4br%uuU0wJ-QU23V={49_nKvac_N|%dN(kopn!nmH3#KGgSX2ykf z+chu18}KUZ*m}!~S75>A%*5qJSGp1-d3-$coxks#)! z;|V_UBW~1+ENW9Hx0w?;ww7CYi@A|&WEbUj)V3{fX&c(Kb75aND0jhGbynRAXW>LW z)am70%!@q4_3(BJyj7pJsYm-C9K_fUEQ1>412&9?#_}-VW}|3iG)6F7UBTxn-TvSh z?C6!{UrB^xSxa6imWa2C93TBb_IWYS7L`a;#tYAzE`hwML|!IJfhgn~l4nv8fjS_y zf+UKQ(+u9pfE;i^7#BdYV$KCKCPB7sPNiAQiPl`7>V3@J}#Kvzkz;HBUzNL7$> z7D5r;5AKADmsu)94Gz)0483RX6Na|r#5<^pR7baVYmD9v$R4F6DM-djF4TmOx!{bj zvp6Zs=5Palufdy?F@cQ?Q5BP2?u^H~Onbgbj{>W&%6rFJz*&roL0RFy?xz1njy33WcDa1f`G< ziE>9OY{nF&A+}w`5D^Q`)t~;gx*NxM7RS+clRc8AM0TP_!>aoml!z9d2po8;c4elZ zb~RCTf1`P#>kWQA5eq0lWT|Ltoo-XQUp94h#1>vfH~)1#H^~O;fQA0g)ZVM<-t=%k z#)8)UMm~D^a{9>vd?DXLr3Rzx6Lw!a;SwmA4s5w*UM>7k%w(mTBU6~7-3hODq=E=xAIjxFpeXzs29 ztDIdz5t29_1_qxi>%p_I0JclvO7Tw$825}bZN*B#a|LTqY|WkAh78vr*lfnDO38u; zY0Yeg_1++lwhovyNU660W(^jXp3S9#XUqe{ix4V*lBU8IJ`qc9O8Z|^VRZ^7eUTie z3wsl6Dxgw!qrrsq#+NdU|KNj=Q7@{Wlo0afF5i<;KkdIg9Stt?@%h!&a5Na_7nl9X zyYt(}cl{?GLXf8Py-wZ9a}<&1HMPEew3Ct)*g?`1b`+`V4w$uc*3>a33Yhbi3ibUx z&L6}z!`!;RAI?s)i3jJi3+}yK!)dVEXMOP3!B&~ZWT}vS#Z`_?myT;g&&6aF1q%;E`2~B(tnLPzEl7J literal 0 HcmV?d00001 diff --git a/houtmarkt/asgi.py b/houtmarkt/asgi.py new file mode 100644 index 0000000..4913cb3 --- /dev/null +++ b/houtmarkt/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for houtmarkt project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'houtmarkt.settings') + +application = get_asgi_application() diff --git a/houtmarkt/settings.py b/houtmarkt/settings.py new file mode 100644 index 0000000..3787836 --- /dev/null +++ b/houtmarkt/settings.py @@ -0,0 +1,121 @@ +""" +Django settings for houtmarkt project. + +Generated by 'django-admin startproject' using Django 3.0.6. + +For more information on this file, see +https://docs.djangoproject.com/en/3.0/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/3.0/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'n2h_6t5qnp8zvke(%a%ph)xj4h8w+kgg46pld0r2^ndcme3el6' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + "markt" +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'houtmarkt.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'houtmarkt.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/3.0/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + + +# Password validation +# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/3.0/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'America/Paramaribo' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/3.0/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/houtmarkt/urls.py b/houtmarkt/urls.py new file mode 100644 index 0000000..bc3a78a --- /dev/null +++ b/houtmarkt/urls.py @@ -0,0 +1,36 @@ +"""houtmarkt URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.0/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path + +from django.urls import include + +urlpatterns = [ + path('markt/', include('markt.urls')), + path('admin/', admin.site.urls), +] + + +from django.views.generic import RedirectView +urlpatterns += [ + path('', RedirectView.as_view(url='markt/', permanent=True)), +] + +# Use static() to add url mapping to serve static files during development (only) +from django.conf import settings +from django.conf.urls.static import static + +urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) \ No newline at end of file diff --git a/houtmarkt/wsgi.py b/houtmarkt/wsgi.py new file mode 100644 index 0000000..fe5c17d --- /dev/null +++ b/houtmarkt/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for houtmarkt project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'houtmarkt.settings') + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..e555379 --- /dev/null +++ b/manage.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'houtmarkt.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/markt/__init__.py b/markt/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/markt/__pycache__/__init__.cpython-38.pyc b/markt/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32f752fa2cd8e97355923cb372451b64f4c89cdf GIT binary patch literal 180 zcmWIL<>g`kg0lsu;z0Cc5P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;x_yvsFxJacWU< zjBjFbab{VnV@ZB)ag0l9adt_5K}>FGPDy4?W?p(}VorQPQGR++Vs0*w8fQTrH2%;Nl7a=II3FEZMq`YLrp1}jS)umVQ2-&*o z6r&;uQY`7u7F*tuf$yeye!vJeh?AoQwPFfF6nkZ)-D|o7O?|3`uy> z7upD^EMy@-9#KS;5hP*|;4|Ae=?TcXu};D_f^j^H_?umxu&I?`*&VmGd6gH=Xv?mo zT{^R3x>K%EO{7Nfien!qKKAj?e>- z{h5xY{fUL;Ulj^h;YxpjglI$$wMh4L9rH$LL=~^1YhP)kLaGlnQl;~z)~Z1 zu+){M4weQn!D1>)11uJ?!D1_m36>^tz~U&21(p_RgQcx3HtB3?z3vm}jn>oidXx|v zrjTnex=UF~M_9A`D@O1cSgGdeMDq+COEMkE_ zJGZ`0GM*+0<9819yg6f&C}8{keY*eTZ)o?x$n7ZD^Ftbs`A%-_&~WB+y2nTQQeQBS z-C2VxeFYK@0pYy{m4AJ=_WAH`3b7n+1Zg_ir30Qs>F^p&@AG6fjIxkV!bv>Ng3zC_WXysn zg5q#W8IAUbJJ2e`<~|>)RLoF+wx4&$l>5O}nuHmrK8(x3I2e#<#{7H{;QqfKdnSe$ zM-jt1WFUGPL`|RfHaUZSxZ4SH8J#hj(wL(Gqqu>+aFeYm9q~Sdqg}Z3;~ifCv`w;ys#JuDCKSGdX4a0Hf)*$1_ z`hr{6V0h|RP=5u?M^IlS zHKd+a9-F^uKzp4u9%`OVOk%;kNo=6MnK#xG76k#n!)nkRYd|vZDw}&@cgy{B?^2Ip zub!E!V|iyycuj%HT9D5z(K4d>ylD|JIuFk+rsS;Z$p7Mo;WF&$>~*+3*Beg8n@iq0 z3vb2rJM2|_`79>qFu|E-*hBUPCa+L*LCg+55v1t6VrKwNlL0`fNG za_2_O>6l7I@LGoh=QQ*V!|Vryu-y4FNkSULlBcCwzCSyTtGB@0yKsqJ2)U~2hGzU- zH!v>9HcC>Oi|cP-$qt+?wb?z)OQ^B(NHEC`6g z4m$_imX*Xl$U22(gfb&n#Y-Trxo~$BaF@a30=RRF7f!+(`vAxAoQ+68c6G^Jw{TZ5 zwo=X*HVe{|Fgh8>H|c)fSQ~7v4X#~hF4Ty9ND39ooL7UR%`|22V7{~P;}4=Fi}^8P z^&Y%)39b}3Oa!Sb{-y*9Ys-Q1ptc++QfyP=s8$!7mV~PU$lw+RXg#(8p{Clp9Ac9u zY+)_pfONI;+RZSCpW47|VL6nn`Dtl@wMMs-BzEI0iYS{mrFlT$MDa58%oOb%h1LcJ zQJss!}s7S z2rINoS9*m{+=8>OMW#VKPWog^9^sp+4Bs!Q{FU<+IN0?V#c&_h?*>IItm zBva6+xtdJep43^?hrzw`b5qYtyE9`SHi4;DA8)4Pytu|- PlXo{cBIgJzwJLrAu`fxV literal 0 HcmV?d00001 diff --git a/markt/__pycache__/views.cpython-38.pyc b/markt/__pycache__/views.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9391dd2d30cc596401dd0aec9f4b6e8751eedb1b GIT binary patch literal 224 zcmYj~JqiLb5QUQ!L(L#a}%&@zfY?hfs@km}p@B+40)^=8o+W6qT z$2Y~iMXS{mtZQ{ykGSt2_*cR(U{jmJ2qUdlgfPzPUAkPUmglLQl~oI8a?Mtw9uD4^<;}Tkl8-X literal 0 HcmV?d00001 diff --git a/markt/admin.py b/markt/admin.py new file mode 100644 index 0000000..54d7d64 --- /dev/null +++ b/markt/admin.py @@ -0,0 +1,9 @@ +from django.contrib import admin +from .models import Factuur, Formaat, Houtmarkt, Houtsoort, Klant, Voorraad + +admin.site.register(Factuur) +admin.site.register(Formaat) +admin.site.register(Houtsoort) +admin.site.register(Houtmarkt) +admin.site.register(Klant) +admin.site.register(Voorraad) diff --git a/markt/apps.py b/markt/apps.py new file mode 100644 index 0000000..1fd4ef3 --- /dev/null +++ b/markt/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class MarktConfig(AppConfig): + name = 'markt' diff --git a/markt/migrations/0001_initial.py b/markt/migrations/0001_initial.py new file mode 100644 index 0000000..4b18286 --- /dev/null +++ b/markt/migrations/0001_initial.py @@ -0,0 +1,74 @@ +# 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')), + ], + ), + ] diff --git a/markt/migrations/__init__.py b/markt/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/markt/migrations/__pycache__/0001_initial.cpython-38.pyc b/markt/migrations/__pycache__/0001_initial.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a34f3d1e20baac5af8537d68e55fe4cf72bd04c GIT binary patch literal 1853 zcmZ`)TW{k;6t*W$d`Z$~w=C>(4a;rAB@~2sfEC)%Qm9JzrMo;t5!SS4>N>SOVLVwi zd4(sW{s(yEuOMD{omZarAD~4noEgWCRe>Yh=X`Un-<*secDsRv*Ka@m`faCcS$}Ay zemSVz!#f}111zu;E49aVO2)+2I!PL1=SvG3;QU~L!|ZAE`^LBloASy`X zNKhH`ELW|R155JzCwi@ZZJ}}x@BB8gEM|>uu*L-JaU-(E4r@+ZK%l|gsRuSV(7Yt4 z1PJOrw7><==st6Q3VyauNz{Pgk{GWxbgp=Hjn_uywTWJB?FBuv;=;8{8@20*cTBWq z6>STixf1P$@!2Y)MWnKQ7M{Ced(+t7DsAC;qrXt;FB<)&N`Lu3DtHC@SE9aJb`7_y zPBc?pwlUqDy3^kD8oUOt8-{fCb^MJLt~sjXZx(pes=9d#?x0Pb{Xv!Y?JDm(74~i= z{ZDMePCe&)t6Fq_b$qz0#nZJ!t?_kuAE#?u`G@6LJy7l*7b&Gu`9_f8{_Y-5UVA3u zl!`@o&KAngnTTl;FWIuUGVkAcblm^&;-kUie{l5B!9QckER^g*;?&ZMFkx9F&s6Jc z{bp$3WHe=}bsDn-a^-);=Moc~OVz1F%&j)oT1IKQT2l76RIUzCWinW3A~z2bnn~rEmo^9r$&^vZMG1a^WBTO{Blb~br<`Z~Y@Vh} zl%6B3XxT1IMj%+OI{SH8HK4q2up&VzsCFsoyiMeOnybwU8>M`n$z|8@HC*k0=A36C zo(W7cMI>Kt7VA2`X{!ztRJ(ihM9$|};7ZWxHV=@NIE%s=6DLeFFgkn?9`OW}cQiki zT+&1}&1=~%Qka&O8--Gqd4I5_yb!reSs1Dy4DrC4CtB`=;dgVItXAAOizSYe>HwRu z3|Mv&vs~ceWvTX#U{tb0ebkADM*PuS@;yB?%HKJoq7Z|9McFM^jeTu3 zumk(1{yjmfc44Kl3jY)F-%a*GOZf#$LpU}&Qf$Jl3LF++p<&6N_*fIAD_>JqNOuua S-rZsdKGS=dYqOs1HU0(k@Fs}> literal 0 HcmV?d00001 diff --git a/markt/migrations/__pycache__/__init__.cpython-38.pyc b/markt/migrations/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6db190937b260996e047fbdd08d951ac461148d4 GIT binary patch literal 191 zcmWIL<>g`kg0lsu;z0Cc5P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;x_YvsFxJacWU< zjBjFbab{VnV@ZB)ag0l9adt_5K}>FGPDy4?W?p(}VorQPQGR++Vs0*w8