Browse Source

new Atlas table from Nov 2011 data.

master
Johnson Chetty 13 years ago
parent
commit
c629a7c10f
  1. 21
      best/new_best/models.py

21
best/new_best/models.py

@ -66,6 +66,27 @@ class Area(models.Model):
return self.areaname
class NewAtlas(models.Models):
#j Modeled directly from Nov2011 BEST excel sheet.
rtalias = models.CharField(max_length=512, db_index=True)
route = models.CharField(max_length=512)
busfrom = models.CharField(max_length=512)
#j first_from and lastFrom are modeled as Decimal, not DateTimeField as data format is decimal. And plus we have to deal with 27 hour days as per Chetan earlier.
f_f = models.DecimalField(max_length=5)
f_l = models.DecimalField(max_length=5)
busto = models.CharField(max_length=512)
t_f = models.DecimalField(max_length=5)
t_l = models.DecimalField(max_length=5)
#j am, noon, pm indicate headway times in minutes.
am = models.IntegerField(max_length=5)
noon = models.IntegerField(max_length=5)
pm = models.IntegerField(max_length=5)
#j schedule is to be modeled as an FK to the schedule table. Data given is not atomic.
schedule = models.CharField(max_length=512)
#j
primary = models.IntegerField(max_length=3)
class Atlas(models.Model):
routecode = models.CharField(max_length=512, db_index=True)
route = models.CharField(max_length=512)

Loading…
Cancel
Save