From 531adcee2e528b6e61df1a4c7772bd63ade1b4e1 Mon Sep 17 00:00:00 2001 From: Hokan Date: Sun, 20 Jan 2019 12:06:40 +0100 Subject: [PATCH] modyfikacja bazy + formularz dodawania klienta --- hotel/db.sqlite3 | Bin 52224 -> 58368 bytes hotel/rooms/__pycache__/views.cpython-35.pyc | Bin 1374 -> 1406 bytes .../migrations/0005_client_reservation.py | 32 ++++++++++++++++++ .../0005_client_reservation.cpython-35.pyc | Bin 0 -> 1138 bytes 4 files changed, 32 insertions(+) create mode 100644 hotel/rooms/migrations/0005_client_reservation.py create mode 100644 hotel/rooms/migrations/__pycache__/0005_client_reservation.cpython-35.pyc diff --git a/hotel/db.sqlite3 b/hotel/db.sqlite3 index 6ba8a53d2fc940b179c53f794419a7ba846aa53b..3cb28a4c555fb477774f31fa4d555d77df122b4a 100644 GIT binary patch delta 1922 zcmah~UuauZ7(eHJH_dWaZMr6=-P&<;lQc=YG&gONG#w&0Z6?Fg;*3xn7}DmhjpUCc zSvMG%U5AMJpxG6zOjK}As82D1J~(7giuxjD&?z#Q58Xt?zWA~SJ@-%S>Dp>Yz9hfz zcfRwx-}!y_UR;HX-@qG3x|b0`3G!*b<{QVxJj*Dw^@W8%HdxmZakvkE!Edk$cVG*C zh7DM6DrsPbq}B!uv7H6f0rL!e3G47e>)`{>!Xdba4z)`f-)iAtFXq&@4+`S}xaY(W z#<}ORrKNJFm|v=7Yx#1i>Tm#r+Hf{k%$G8S@=`x3;A%)cm%VH+2T25fz<2N?T!#-J z2~R;D&cka>Wf1&!*42kA<#MsQSjfwz8s}tP9s{VzRk^aF?_yK)T~|mU3Bm7h3%(_? z--lP>94x~rkeZ4Q{9PQ2Tzym}hm8Op9iS?y%RTQx0Nqxt4#|$I_!%tWA>4;8XbatL zC@@12QSVS@A7XFo4 z#djKt@L}vKW|>v=Swp$3e*e+Y)5@@9b@_bw#lBj0p&;wqnOo7n$EQxEq;!f;OUaoO zFVHE04+!~OrgXNrAXfx_C0ijKtppN5m5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ation.py b/hotel/rooms/migrations/0005_client_reservation.py new file mode 100644 index 0000000..d6e2db2 --- /dev/null +++ b/hotel/rooms/migrations/0005_client_reservation.py @@ -0,0 +1,32 @@ +# Generated by Django 2.1.5 on 2019-01-20 11:06 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('rooms', '0004_auto_20190112_2307'), + ] + + operations = [ + migrations.CreateModel( + name='Client', + fields=[ + ('id_number', models.CharField(max_length=9, primary_key=True, serialize=False)), + ('name', models.CharField(max_length=40)), + ('surname', models.CharField(max_length=40)), + ], + ), + migrations.CreateModel( + name='Reservation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('begin_date', models.DateField()), + ('end_date', models.DateField()), + ('client_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rooms.Client')), + ('room_number', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rooms.Room')), + ], + ), + ] diff --git a/hotel/rooms/migrations/__pycache__/0005_client_reservation.cpython-35.pyc b/hotel/rooms/migrations/__pycache__/0005_client_reservation.cpython-35.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b62d206a9a17434ab5b23247941192607007bcaa GIT binary patch literal 1138 zcmaJ=TTc@~6h3?Dw!3WwFMxoW_+YS_v;{TB#3-Z{V+cHe@qw63ww=SWWiNGhOKe~9 z&-j<-)hGUfPo9}wC?>|eOwMh-^PO{MmYYp){Y(Gr)CTwkHy+YqoBr%QEu20BB7oR{ zV*_Fnj!iI>)r81`V;eql3%CtG$YcW=Fsi@>IVvjRs8zWn5NMgwi^D+pd6*`dbmEj_ zlpPF}@9J3~VVnMJ!vH`~*(eQV;}0RA9R81P9Q8Q586SHQ+9A4|pAT11`Wi zp^dcVI-p5LLm6-V!x&iPHRt#Xpzs%UBq86{$T#r$9pHCqi>(0f=`fd6Q0mg(>atde z*a~1BMhzGdr6!DS0lyD?RpnK?*8Ur|UWNtKTQCC}0x^6*?R_NO{j0vpib&HqlPleB z_a*ZudCIoBn{T?Cn_Fz_MfbI|6F)}j^r8@xTskKqMm&>l$XPOp2PkMp{&yB(66B|s zE{#Ig$0Ce8znkYnRmPN-Igvyux)zrh}F_ zE1Do2;@4V~HKubiCOyXJ)J-BJxxv`Ci61F8O5->t3YZK-%!H}y?rG-x>X-^kS=`>K zFLqVOq`O0{EyX?+P>9}cDliO^J)BC1kNhM^rO5}frmLW1FRQ(squx&cgY?odmRI2? zh-U<^m*0Dx(=l~PO|Vt^vo%^8 zmTS9)V?H*PjCD&%8^!{?8-|W+InpgCxA{PKpeTCv+So2`Z2PJh@kFs!Ip+Ke={ebC R?QPNPcdB=p3R^ZB)*p(}D0Bb- literal 0 HcmV?d00001