Implemented Carrier Aerodrome AircraftBase Equipment
This commit is contained in:
12
simulator/models/aerodrome.py
Normal file
12
simulator/models/aerodrome.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Aerodrome(models.Model):
|
||||
icao = models.CharField(max_length=4, unique=True)
|
||||
iata = models.CharField(max_length=3, unique=True, blank=True, null=True)
|
||||
name = models.CharField(max_length=100)
|
||||
city = models.CharField(max_length=100)
|
||||
country = models.CharField(max_length=3)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.icao} - {self.city}"
|
Reference in New Issue
Block a user