Add VMPricing model
This commit is contained in:
parent
a00ce7605b
commit
28de423a14
1 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,19 @@ class VMTemplate(models.Model):
|
||||||
return vm_template
|
return vm_template
|
||||||
|
|
||||||
|
|
||||||
|
class VMPricing(models.Model):
|
||||||
|
name = models.CharField(max_length=255, unique=True)
|
||||||
|
vat_inclusive = models.BooleanField(default=True)
|
||||||
|
vat_percentage = models.DecimalField(decimal_places=2, blank=True)
|
||||||
|
cores_unit_price = models.DecimalField(decimal_places=2, default=0)
|
||||||
|
ram_unit_price = models.DecimalField(decimal_places=2, default= 0)
|
||||||
|
ssd_unit_price = models.DecimalField(decimal_places=2, default=0)
|
||||||
|
hdd_unit_price = models.DecimalField(decimal_places=2, default=0)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
|
|
||||||
class StripePlan(models.Model):
|
class StripePlan(models.Model):
|
||||||
"""
|
"""
|
||||||
A model to store Data Center Light's created Stripe plans
|
A model to store Data Center Light's created Stripe plans
|
||||||
|
|
Loading…
Reference in a new issue