# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


class chatSession(models.Model):
<<<<<<< issue1
    name = models.CharField(max_length=128, help_text="Session title")
    link = models.URLField(help_text="Chat session URL")
    profile_name = models.CharField(max_length=128,
                                    help_text="The person's name")
    profile_url = models.URLField(help_text="The Url of the person's website")
    description = models.TextField(max_length=512, help_text="Session details")
    start_date = models.DateTimeField()
    end_date = models.DateTimeField()
    link = models.URLField(help_text="Chat session URL")

    def __str__(self):
        return self.name


class Contest(models.Model):
    name = models.CharField(max_length=128, help_text="Contest name")
    link = models.URLField(help_text="URL of the contest's website")
    description = models.TextField(
        max_length=512, help_text="Contest details", null=True)
    start_date = models.DateField(null=True)
    end_date = models.DateField(null=True)
    approved = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Journey(models.Model):
    title = models.CharField(max_length=128, help_text="Journey title")
    start_date = models.DateField(null=True)

    def __str__(self):
        return self.title
