[project @ Basic Library Table]
authorLorian Schaeffer <lorian@caltech.edu>
Tue, 6 Nov 2007 16:34:29 +0000 (16:34 +0000)
committerLorian Schaeffer <lorian@caltech.edu>
Tue, 6 Nov 2007 16:34:29 +0000 (16:34 +0000)
elandifier/fctracker/models.py

index 71b4944235f6b1bd285e5f5ab01b34430808c96b..95ad1a5a8616c07e3649217d5202b9f1589d6eec 100644 (file)
@@ -16,6 +16,21 @@ class Specie(models.Model):
 
 #class BedFilePack(models.Model):
 
+class Library(models.Model):
+  class Admin: pass
+  
+  library_id = models.IntegerField(unique=True, db_index=True)
+  library_name = models.CharField(maxlength=100, unique=True)
+  library_species = models.ForeignKey(Specie)
+  
+  made_from_sample = models.ForeignKey('self', blank=True)
+  
+  made_by = models.CharField(maxlength=50, blank=True)
+  creation_date = models.DateField(blank=True, null=True)
+  notes = models.TextField(blank=True)
+  
+  def __str__(self):
+    return self.library_name
 
 
 class FlowCell(models.Model):