# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models

class Course(models.Model):
    name = models.CharField(max_length=100)
    created_at = models.DateField(auto_now_add=True)
    updated_at = models.DateField(auto_now=True)

class Description(models.Model):
    course = models.ForeignKey(Course)
    description = models.TextField(max_length=500)
    created_at = models.DateField(auto_now_add=True)
    updated_at = models.DateField(auto_now=True)

class Comment(models.Model):
    course = models.ForeignKey(Course)
    comment = models.TextField(max_length=500)
    created_at = models.DateField(auto_now_add=True)
    updated_at = models.DateField(auto_now=True)