from django.db import models

# Create your models here.
class User(models.Model):
    '''氏名'''
    name = models.CharField(u'氏名', max_length=255,)

    def __str__(self):
        return self.name

class Time(models.Model):
    '''時刻'''
    name = models.ForeignKey(User, verbose_name=u'氏名', related_name='times',)
    time = models.DateTimeField(auto_now=False, auto_now_add=False,)

    def get_time(self):
        return self.time

class Swarable(models.Model):
    '''スワラブル'''
    content = models.CharField(u'コメント', max_length=255,)

    def __str__(self):
        return self.content
