diff --git a/rowers/models.py b/rowers/models.py index f0659bf1..aa480b92 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -3790,3 +3790,20 @@ class ShareKey(models.Model): @property def expiration_date(self): return self.creation_date + datetime.timedelta(self.expiration_seconds) + +class StandardCollection(models.Model): + name = models.CharField(max_length=150) + +class CourseStandard(models.Model): + name = models.CharField(max_length=150) + coursedistance = models.IntegerField() + coursestandard = models.FloatField() # average boat speed + agemin = models.IntegerField(default=0) + agemax = models.IntegerField(default=120) + boatclass = models.CharField(max_length=150) # corresponds to workout workouttype + boattype = models.CharField(choices=boattypes,max_length=50,default='1x') + sex = models.CharField(max_length=150) + weightclass = models.CharField(max_length=150) + adaptiveclass = models.CharField(choices=mytypes.adaptivetypes,max_length=50,default="None") + skillclass = models.CharField(max_length=150) + standardcollection = models.ForeignKey(StandardCollection,on_delete=models.CASCADE)