new Atlas table from Nov 2011 data.

This commit is contained in:
Johnson Chetty 2011-11-19 15:39:28 +05:30
parent 3fa9c5e3b9
commit c629a7c10f

View File

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