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

class Profissao(models.Model):
    descricao = models.CharField(max_length=20)
    
    class Meta:
        ordering = ["descricao"]
        verbose_name_plural = "profissoes"
    
    def __unicode__(self):
        return self.descricao

class Membro(models.Model):
    nome_completo = models.CharField(max_length=50)
    apelido = models.CharField(max_length=20)
    apresentacao = models.TextField()
    membro_desde = models.DateField()
    profissao_membro = models.ForeignKey(Profissao)
    
    class Meta:
        ordering = ["membro_desde"]
        
    def __unicode__(self):
        return self.nome_completo

class Servico(models.Model):
    titulo = models.CharField(max_length=50)
    descricao = models.TextField()
    
    def __unicode__(self):
        return self.titulo
        
class Produto(models.Model):
    titulo = models.CharField(max_length=50)
    descricao = models.TextField()
    
    def __unicode__(self):
        return self.titulo
        
class Portifolio(models.Model):
    titulo = models.CharField(max_length=50)
    descricao = models.TextField()
    
    def __unicode__(self):
        return self.titulo

# class Dados_Contato(models.Model):
    # nome_empresa = models.CharField(max_length=50)
    # email = models.EmailField(max_length=75)
    # telefone = models.CharField(max_length=15)
    
    # def __unicode__(self):
        # return self.nome_empresa