Added missing Service.py
authorSiobhan Tully <stully@verivue.com>
Wed, 9 Oct 2013 01:53:27 +0000 (21:53 -0400)
committerSiobhan Tully <stully@verivue.com>
Wed, 9 Oct 2013 01:53:27 +0000 (21:53 -0400)
planetstack/core/models/service.py [new file with mode: 0644]

diff --git a/planetstack/core/models/service.py b/planetstack/core/models/service.py
new file mode 100644 (file)
index 0000000..ffa3531
--- /dev/null
@@ -0,0 +1,17 @@
+from core.models import PlCoreBase,SingletonModel
+from django.db import models
+
+class Service(PlCoreBase):
+    description = models.TextField(max_length=254,null=True, blank=True,help_text="Description of Service")
+    enabled = models.BooleanField(default=True)
+    name = models.CharField(max_length=30, help_text="Service Name")
+    versionNumber = models.CharField(max_length=30, help_text="Version of Service Definition")
+
+    def __unicode__(self): return u'%s' % (self.name)
+
+class ServiceAttribute(PlCoreBase):
+    name = models.SlugField(help_text="Attribute Name", max_length=128)
+    value = models.CharField(help_text="Attribute Value", max_length=1024)
+    service = models.ForeignKey(Service, related_name='serviceattributes', help_text="The Service this attribute is associated with")
+
+