introduce service offering status

This commit is contained in:
Tobias Brunner 2025-01-31 16:50:50 +01:00
parent a4850683c9
commit 5eb40ffc4f
No known key found for this signature in database
6 changed files with 65 additions and 6 deletions

View file

@ -166,6 +166,15 @@ class ServiceOffering(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
STATUS_CHOICES = [
("available", "Available"),
("planned", "Planned"),
("on_request", "On Request"),
]
status = models.CharField(
max_length=20, choices=STATUS_CHOICES, default="available"
)
class Meta:
unique_together = ["service", "cloud_provider"]
ordering = ["service__name", "cloud_provider__name"]