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,
    )

[((217, 248), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'null': '(False)'}), '(null=False)\n', (236, 248), False, 'from django.db import models\n'), ((264, 292), 'django.db.models.TextField', 'models.TextField', ([], {'null': '(False)'}), '(null=False)\n', (280, 292), False, 'from django.db import models\n'), ((311, 339), 'django.db.models.TextField', 'models.TextField', ([], {'null': '(False)'}), '(null=False)\n', (327, 339), False, 'from django.db import models\n'), ((355, 387), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'null': '(False)'}), '(null=False)\n', (375, 387), False, 'from django.db import models\n'), ((408, 429), 'django.db.models.IntegerField', 'models.IntegerField', ([], {}), '()\n', (427, 429), False, 'from django.db import models\n'), ((442, 543), 'django.db.models.CharField', 'models.CharField', ([], {'choices': "(('local', 'local'), ('international', 'international'))", 'max_length': '(13)'}), "(choices=(('local', 'local'), ('international',\n    'international')), max_length=13)\n", (458, 543), False, 'from django.db import models\n')]