models and admin for ServiceClass and ServiceResource
diff --git a/planetstack/core/models/serviceclass.py b/planetstack/core/models/serviceclass.py
new file mode 100644
index 0000000..8e7d21f
--- /dev/null
+++ b/planetstack/core/models/serviceclass.py
@@ -0,0 +1,19 @@
+import os
+from django.db import models
+from core.models import PlCoreBase
+from core.models import Site
+from core.models import DeploymentNetwork
+
+# Create your models here.
+
+class ServiceClass(PlCoreBase):
+ name = models.CharField(max_length=32)
+ description = models.CharField(max_length=255)
+ commitment = models.IntegerField(default=365)
+ membershipFee = models.IntegerField(default=0)
+ membershipFeeMonths = models.IntegerField(default=12)
+ upgradeRequiresApproval = models.BooleanField(default=False)
+ upgradeFrom = models.ManyToManyField('self', blank=True, null=True)
+
+ def __unicode__(self): return u'%s' % (self.name)
+