RateMyCourse/backend/postings/models.py

14 lines
441 B
Python

from django.db import models
class Review(models.Model):
# An integer rating which defines
rating = models.IntegerField(default=1)
# 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)