aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'master/autotua/models.py')
-rw-r--r--master/autotua/models.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/master/autotua/models.py b/master/autotua/models.py
new file mode 100644
index 0000000..958bb3e
--- /dev/null
+++ b/master/autotua/models.py
@@ -0,0 +1,32 @@
+# vim: set sw=4 sts=4 et :
+# Copyright: 2008 Gentoo Foundation
+# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
+# License: GPL-2
+#
+# Immortal lh!
+#
+
+from django.db import models
+from django.contrib.auth.models import User
+
+# Create your models here.
+class Job(models.Model):
+ # Identifier for the job
+ name = models.CharField(max_length=30, unique=True)
+ # Name of maintainer
+ maintainer = models.ForeignKey(User)
+ # gentoo://stage{1..4} or URL
+ # Using a URL => stage, arch, type, release ignored
+ stage = models.CharField(max_length=25)
+ # i686, amd64, g4, etc.
+ arch = models.CharField(max_length=25) # choices; const.archs['all']
+ # Type of stage; hardened, uclibc, etc
+ #type = CharField(maxlength=25) # const.stage_types
+ # List of releases?
+ release = models.CharField(max_length=25)
+ # Revision of jobtage tree to use (auto generated)
+ jobtagerev = models.CharField(max_length=50)
+ # Space-separated list of atoms
+ atoms = models.TextField()
+ class Meta:
+ unique_together = [("name", "maintainer")]