from django.db import models

import schedule
from schedule.models import Flight
# Create your models here.
class Status(models.Model):
    pnr=models.CharField(max_length=10,primary_key=True)
    boardstatus=models.CharField(max_length=10)
    description=models.CharField(max_length=10)
class Passenger(models.Model):
    name=models.CharField(max_length=20)
    pnr=models.ForeignKey('Status',on_delete=models.CASCADE)
    flightid=models.CharField(max_length=5)
    source=models.CharField(max_length=4)
    destination=models.CharField(max_length=4)
class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status',on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)
class LiveFlight(models.Model):
    flightid=models.ForeignKey('schedule.Flight',on_delete=models.CASCADE)
    status=models.CharField(max_length=30)

049154551bb60733c7545254e71c342c3cf95047
<mask token>


class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class LiveFlight(models.Model):
    flightid = models.ForeignKey('schedule.Flight', on_delete=models.CASCADE)
    status = models.CharField(max_length=30)

<mask token>


class Passenger(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class LiveFlight(models.Model):
    flightid = models.ForeignKey('schedule.Flight', on_delete=models.CASCADE)
    status = models.CharField(max_length=30)

<mask token>


class Passenger(models.Model):
    name = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class LiveFlight(models.Model):
    flightid = models.ForeignKey('schedule.Flight', on_delete=models.CASCADE)
    status = models.CharField(max_length=30)

<mask token>


class Status(models.Model):
    <mask token>
    <mask token>
    <mask token>


class Passenger(models.Model):
    name = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status', on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)


class LiveFlight(models.Model):
    flightid = models.ForeignKey('schedule.Flight', on_delete=models.CASCADE)
    status = models.CharField(max_length=30)

from django.db import models

import schedule
from schedule.models import Flight
# Create your models here.
class Status(models.Model):
    pnr=models.CharField(max_length=10,primary_key=True)
    boardstatus=models.CharField(max_length=10)
    description=models.CharField(max_length=10)
class Passenger(models.Model):
    name=models.CharField(max_length=20)
    pnr=models.ForeignKey('Status',on_delete=models.CASCADE)
    flightid=models.CharField(max_length=5)
    source=models.CharField(max_length=4)
    destination=models.CharField(max_length=4)
class Goods(models.Model):
    item = models.CharField(max_length=20)
    pnr = models.ForeignKey('Status',on_delete=models.CASCADE)
    flightid = models.CharField(max_length=5)
    source = models.CharField(max_length=4)
    destination = models.CharField(max_length=4)
class LiveFlight(models.Model):
    flightid=models.ForeignKey('schedule.Flight',on_delete=models.CASCADE)
    status=models.CharField(max_length=30)
