RateMyCourse/backend/postings/models.py

14 lines
441 B
Python
Raw Normal View History

2018-09-16 16:52:23 +00:00
from django.db import models
class Review(models.Model):
# An integer rating which defines
rating = models.IntegerField(default=1)
2018-09-16 16:52:23 +00:00
# Create your models here.
class UniversityReview(models.Model):
university_name = models.CharField(max_length=200)
username = models.CharField(max_length=200)
title = models.CharField(max_length=200)
date_published = models.DateTimeField('date published')
content = models.CharField(max_length=200)