summaryrefslogtreecommitdiff
path: root/spoken_auth
diff options
context:
space:
mode:
authorSanmugasundaram K2015-01-08 12:32:18 +0530
committerSanmugasundaram K2015-01-08 12:32:18 +0530
commit293af4fcc716fba56f26f3490443b6ba3ff2c440 (patch)
tree20e9ac8859bdd39ef741c9b28960e04727db9056 /spoken_auth
parent2ae49074f030b61088317526b023b9e21124dbfc (diff)
downloadFOSSEE-Forum-293af4fcc716fba56f26f3490443b6ba3ff2c440.tar.gz
FOSSEE-Forum-293af4fcc716fba56f26f3490443b6ba3ff2c440.tar.bz2
FOSSEE-Forum-293af4fcc716fba56f26f3490443b6ba3ff2c440.zip
all tables linked with new website
Diffstat (limited to 'spoken_auth')
-rw-r--r--spoken_auth/models.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/spoken_auth/models.py b/spoken_auth/models.py
index b315b2d..431330d 100644
--- a/spoken_auth/models.py
+++ b/spoken_auth/models.py
@@ -12,3 +12,39 @@ class Users(AbstractBaseUser):
USERNAME_FIELD = 'username'
class Meta:
db_table = 'auth_user'
+
+class FossCategory(models.Model):
+ foss = models.CharField(unique=True, max_length = 255)
+ description = models.TextField()
+ status = models.BooleanField(max_length = 2)
+ created = models.DateTimeField(auto_now_add = True)
+ updated = models.DateTimeField(auto_now = True)
+ class Meta:
+ db_table = 'creation_fosscategory'
+
+class Language(models.Model):
+ name = models.CharField(max_length = 255, unique = True)
+ created = models.DateTimeField(auto_now_add = True)
+ updated = models.DateTimeField(auto_now = True)
+ class Meta:
+ db_table = 'creation_language'
+
+class TutorialDetails(models.Model):
+ foss = models.ForeignKey(FossCategory)
+ tutorial = models.CharField(max_length = 255)
+ order = models.IntegerField()
+ created = models.DateTimeField(auto_now_add = True)
+ updated = models.DateTimeField(auto_now = True)
+
+ class Meta:
+ db_table = 'creation_tutorialdetail'
+
+class TutorialResources(models.Model):
+ id = models.IntegerField(primary_key=True)
+ tutorial_detail = models.ForeignKey(TutorialDetails)
+ language = models.ForeignKey(Language)
+ video = models.TextField()
+ status = models.PositiveSmallIntegerField(default = 0)
+
+ class Meta:
+ db_table = 'creation_tutorialresource'