blob: d5c86cd8ff1c67301c202782b98537cf8656c28e [file] [log] [blame]
import os
from django.db import models
from core.models import PlCoreBase
from core.models import ServiceClass
# Create your models here.
class ServiceResource(PlCoreBase):
serviceClass = models.ForeignKey(ServiceClass, related_name = "serviceresources")
name = models.CharField(max_length=32)
maxUnitsDeployment = models.IntegerField(default=1)
maxUnitsNode = models.IntegerField(default=1)
maxDuration = models.IntegerField(default=1)
bucketInRate = models.IntegerField(default=0)
bucketMaxSize = models.IntegerField(default=0)
cost = models.IntegerField(default=0)
calendarReservable = models.BooleanField(default=True)
def __unicode__(self): return u'%s' % (self.name)