from django.db import models

from multigtfs.models import (
    Block, Fare, FareRule, Feed, Frequency, Route, Service, ServiceDate, Shape,
    ShapePoint, Stop, StopTime, Trip, Agency)


class Path(models.Model):
    trip = models.ForeignKey(Trip)
    stop = models.ForeignKey(Stop)
    path = models.CharField(max_length=1024, null=True, blank=True)
    
    class Meta:
        unique_together = ('trip', 'stop',)

class Capacity(models.Model):
    trip = models.ForeignKey(Trip)
    stop_time = models.ForeignKey(StopTime)
    service_date = models.ForeignKey(ServiceDate)

    capacity1st = models.IntegerField('capacity1st', null=True, blank=True)
    capacity2nd = models.IntegerField('capacity2nd', null=True, blank=True)

    class Meta:
        unique_together = ('trip', 'stop_time', 'service_date')
[(9, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import models\n'), (10, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import models\n'), (11, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import models\n'), (17, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import models\n'), (18, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import models\n'), (19, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import models\n'), (21, 'django.db.models.IntegerField', 'models.IntegerField', False, 'from django.db import models\n'), (22, 'django.db.models.IntegerField', 'models.IntegerField', False, 'from django.db import models\n')]