from django.db import models
from django.forms import ModelForm
from datetime import date

# Create your models here.
class RecordType(models.Model):
    label = models.CharField(max_length=10, unique=True)
    description = models.TextField(max_length=100)
    created_at = models.DateTimeField(auto_now=True, auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True, auto_now_add=True)

    class Meta:
        db_table = 'record_type'

    def __unicode__(self):
        return self.label

class RecordTypeForm(ModelForm):
    class Meta:
        model = RecordType
