aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryuslash/aggregator/models.py')
-rw-r--r--ryuslash/aggregator/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ryuslash/aggregator/models.py b/ryuslash/aggregator/models.py
new file mode 100644
index 0000000..34fb5a3
--- /dev/null
+++ b/ryuslash/aggregator/models.py
@@ -0,0 +1,14 @@
+from django.db import models
+
+class Post(models.Model):
+ post_id = models.CharField(max_length=255, unique=True,
+ primary_key=True)
+ title = models.CharField(max_length=500)
+ category = models.CharField(max_length=255)
+ link = models.URLField(max_length=255)
+ updated = models.DateTimeField()
+ content = models.TextField()
+ icon = models.CharField(max_length=255)
+
+ class Meta:
+ ordering = [ '-updated' ]