from __future__ import unicode_literals
from django.db import models

class Description(models.Model):
    text        = models.TextField(max_length=1000)
    created_at  = models.DateTimeField(auto_now_add=True)
    updated_at  = models.DateTimeField(auto_now=True)

class Course(models.Model):
    name        = models.CharField(max_length=255)
    description = models.ForeignKey(Description)
    created_at  = models.DateTimeField(auto_now_add=True)
    updated_at  = models.DateTimeField(auto_now=True)