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, 15, 10, 46), 'django.db.models.IntegerField', 'models.IntegerField', (), '', False, 'from django.db import models\n'), ((11, 15, 11, 43), 'django.db.models.TextField', 'models.TextField', (), '', False, 'from django.db import models\n'), ((12, 18, 12, 46), 'django.db.models.TextField', 'models.TextField', (), '', False, 'from django.db import models\n'), ((13, 15, 13, 47), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import models\n'), ((14, 20, 14, 41), 'django.db.models.IntegerField', 'models.IntegerField', ({}, {}), '()', False, 'from django.db import models\n'), ((16, 11, 19, 5), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n')]