Commit cc202eae authored by Stephanie Tullao's avatar Stephanie Tullao

Removed myenvfolder

parent 4bdd0070
No preview for this file type
No preview for this file type
# Generated by Django 3.2.12 on 2022-11-24 06:22 # Generated by Django 4.0.3 on 2022-11-27 19:02
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models
...@@ -35,7 +35,7 @@ class Migration(migrations.Migration): ...@@ -35,7 +35,7 @@ class Migration(migrations.Migration):
('Employee_ID', models.AutoField(editable=False, primary_key=True, serialize=False, unique=True)), ('Employee_ID', models.AutoField(editable=False, primary_key=True, serialize=False, unique=True)),
('Fname', models.CharField(max_length=50)), ('Fname', models.CharField(max_length=50)),
('Lname', models.CharField(max_length=50)), ('Lname', models.CharField(max_length=50)),
('Role', models.CharField(max_length=50)), ('Role', models.CharField(choices=[('Pilot', 'Pilot'), ('Flight Attendant', 'Flight Attendant')], max_length=50)),
], ],
), ),
migrations.CreateModel( migrations.CreateModel(
...@@ -60,6 +60,20 @@ class Migration(migrations.Migration): ...@@ -60,6 +60,20 @@ class Migration(migrations.Migration):
('Email_add', models.EmailField(max_length=254, validators=[django.core.validators.EmailValidator()])), ('Email_add', models.EmailField(max_length=254, validators=[django.core.validators.EmailValidator()])),
], ],
), ),
migrations.CreateModel(
name='Flight_Attendant',
fields=[
('Employee_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='booking.crew_member', unique=True)),
('Assigned_Class', models.CharField(choices=[('Economy', 'Economy'), ('Premium Economy', 'Premium Economy'), ('Business', 'Business'), ('First Class', 'First Class')], max_length=50)),
],
),
migrations.CreateModel(
name='Pilot',
fields=[
('Employee_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='booking.crew_member', unique=True)),
('Rank', models.CharField(choices=[('Cadet Pilot', 'Cadet Pilot'), ('Second Officer', 'Second Officer'), ('First Officer', 'First Officer'), ('Senior First Officer', 'Senior First Officer'), ('Captain', 'Captain')], max_length=50)),
],
),
migrations.CreateModel( migrations.CreateModel(
name='Schedule', name='Schedule',
fields=[ fields=[
...@@ -81,11 +95,34 @@ class Migration(migrations.Migration): ...@@ -81,11 +95,34 @@ class Migration(migrations.Migration):
name='Sched_Crew', name='Sched_Crew',
fields=[ fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Employee_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.crew_member')), ('Employee_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.crew_member', unique=True)),
('Sched_Code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.schedule')), ('Sched_Code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.schedule', unique=True)),
], ],
options={ options={
'unique_together': {('Sched_Code', 'Employee_ID')}, 'unique_together': {('Sched_Code', 'Employee_ID')},
}, },
), ),
migrations.CreateModel(
name='Booking_Sched',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Booking_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.booking', unique=True)),
('Sched_Code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.schedule', unique=True)),
],
options={
'unique_together': {('Booking_ID', 'Sched_Code')},
},
),
migrations.CreateModel(
name='Booking_AddItem',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Quantity', models.IntegerField(default=0)),
('AddItem_Desc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.additional_item', unique=True)),
('Booking_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.booking', unique=True)),
],
options={
'unique_together': {('Booking_ID', 'AddItem_Desc')},
},
),
] ]
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment