Private
Public Access
1
0

First version

This commit is contained in:
Sander Roosendaal
2020-05-25 21:48:22 +02:00
parent 5717aba426
commit e4e5397e40

View File

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