prediction templates
This commit is contained in:
parent
9bf24b072b
commit
576db57d99
4 changed files with 65 additions and 5 deletions
|
|
@ -58,9 +58,20 @@ class PreditctionTemplate(models.Model):
|
|||
name = models.CharField(max_length=100)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
template_data = models.JSONField(blank=True, default=dict)
|
||||
is_default = models.BooleanField(default=False)
|
||||
|
||||
description = models.TextField(blank=True, null=True)
|
||||
prediction_mode = models.CharField(
|
||||
max_length=50,
|
||||
default="") # TODO: add choices for prediction modes
|
||||
model = models.CharField(
|
||||
max_length=50,
|
||||
default="") # TODO: add choices for models
|
||||
dataset = models.CharField(
|
||||
max_length=50,
|
||||
default="")
|
||||
flight_parameters = models.JSONField(blank=True, default=dict)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('user', 'name')
|
||||
|
||||
|
|
@ -86,6 +97,8 @@ class SavedRateProfile(models.Model):
|
|||
name = models.CharField(max_length=100)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
type = models.CharField(
|
||||
max_length=50, default="ascent") # TODO: add choices for rate profile types
|
||||
rate_profile_data = models.JSONField(blank=True, default=dict)
|
||||
is_default = models.BooleanField(default=False)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue