diff --git a/hotel/db.sqlite3 b/hotel/db.sqlite3 index 6ba8a53..3cb28a4 100644 Binary files a/hotel/db.sqlite3 and b/hotel/db.sqlite3 differ diff --git a/hotel/rooms/__pycache__/views.cpython-35.pyc b/hotel/rooms/__pycache__/views.cpython-35.pyc index e082e3e..99c435c 100644 Binary files a/hotel/rooms/__pycache__/views.cpython-35.pyc and b/hotel/rooms/__pycache__/views.cpython-35.pyc differ diff --git a/hotel/rooms/migrations/0005_client_reservation.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 0000000..b62d206 Binary files /dev/null and b/hotel/rooms/migrations/__pycache__/0005_client_reservation.cpython-35.pyc differ