Add FKs to prediction
This commit is contained in:
parent
d7a99e915f
commit
0925d87a00
2 changed files with 35 additions and 0 deletions
|
|
@ -18,6 +18,12 @@ class Prediction(models.Model):
|
|||
updated_at = models.DateTimeField(auto_now=True)
|
||||
request = models.JSONField(default=dict)
|
||||
result = models.JSONField(default=dict)
|
||||
start_point = models.ForeignKey(
|
||||
'SavedPoint', on_delete=models.SET_NULL, related_name='predictions', null=True)
|
||||
template = models.ForeignKey(
|
||||
'PreditctionTemplate', on_delete=models.SET_NULL, related_name='predictions', null=True)
|
||||
rate_profile = models.ForeignKey(
|
||||
'SavedRateProfile', on_delete=models.SET_NULL, related_name='predictions', null=True)
|
||||
|
||||
|
||||
class Satellite(models.Model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue