Add FKs to prediction

This commit is contained in:
ThePetrovich 2025-07-03 20:52:14 +08:00
parent d7a99e915f
commit 0925d87a00
2 changed files with 35 additions and 0 deletions

View file

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