From c629a7c10f64175383db6bea402454f28745173e Mon Sep 17 00:00:00 2001 From: Johnson Chetty Date: Sat, 19 Nov 2011 15:39:28 +0530 Subject: [PATCH] new Atlas table from Nov 2011 data. --- best/new_best/models.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/best/new_best/models.py b/best/new_best/models.py index c0e9598..58c87f6 100755 --- a/best/new_best/models.py +++ b/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)