summaryrefslogtreecommitdiff
path: root/nop/models.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-11-01 19:06:20 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-11-01 19:06:20 (GMT)
commit57cbdfa46ec6afdd821923e95f60bdb8449c67b5 (patch)
tree38771a471f4c58e2d9ca1a6568a5c7bfc17514e6 /nop/models.py
parentc5bcf2d04d594f6f8fff03d87d79377be52e8db5 (diff)
updated ids with playlist instead of (live) moderation, added special show handling. formatting.
Diffstat (limited to 'nop/models.py')
-rw-r--r--nop/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nop/models.py b/nop/models.py
index 8bb87af..6aeb794 100644
--- a/nop/models.py
+++ b/nop/models.py
@@ -1,5 +1,6 @@
from django.db import models
+
class Master(models.Model):
timestamp = models.BigIntegerField(primary_key=True)
cart = models.IntegerField()
@@ -9,6 +10,7 @@ class Master(models.Model):
artist = models.CharField(max_length=765, blank=True)
album = models.CharField(max_length=765, blank=True)
ismusic = models.IntegerField(null=True, blank=True)
+
class Meta:
db_table = u'master'
ordering = ['-timestamp']
@@ -23,6 +25,7 @@ class Standby(models.Model):
artist = models.CharField(max_length=765, blank=True)
album = models.CharField(max_length=765, blank=True)
ismusic = models.IntegerField(null=True, blank=True)
+
class Meta:
db_table = u'standby'
ordering = ['-timestamp']
@@ -30,7 +33,7 @@ class Standby(models.Model):
class State(models.Model):
timestamp = models.BigIntegerField(primary_key=True)
state = models.CharField(max_length=96, blank=True)
+
class Meta:
db_table = u'state'
ordering = ['-timestamp']
-