from airtech_api.utils.auditable_model import AuditableBaseModel
from django.db import models


# Create your models here.
class Flight(AuditableBaseModel):
    class Meta:
        db_table = 'Flight'

    capacity = models.IntegerField(null=False)
    location = models.TextField(null=False)
    destination = models.TextField(null=False)
    schedule = models.DateTimeField(null=False)
    current_price = models.IntegerField()

    type = models.CharField(
        choices=(('local', 'local'), ('international', 'international')),
        max_length=13,
    )

[(10, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'null': '(False)'}), False, 'from django.db import models\n'), (11, 'django.db.models.TextField', 'models.TextField', ([], {'null': '(False)'}), False, 'from django.db import models\n'), (12, 'django.db.models.TextField', 'models.TextField', ([], {'null': '(False)'}), False, 'from django.db import models\n'), (13, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'null': '(False)'}), False, 'from django.db import models\n'), (14, 'django.db.models.IntegerField', 'models.IntegerField', ([], {}), False, 'from django.db import models\n'), (16, 'django.db.models.CharField', 'models.CharField', ([], {'choices': "(('local', 'local'), ('international', 'international'))", 'max_length': '(13)'}), False, 'from django.db import models\n')]