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, 11, 9, 34), 'django.db.models.ForeignKey', 'models.ForeignKey', ({(9, 29, 9, 33): 'Trip'}, {}), '(Trip)', False, 'from django.db import models\n'), ((10, 11, 10, 34), 'django.db.models.ForeignKey', 'models.ForeignKey', ({(10, 29, 10, 33): 'Stop'}, {}), '(Stop)', False, 'from django.db import models\n'), ((11, 11, 11, 67), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((17, 11, 17, 34), 'django.db.models.ForeignKey', 'models.ForeignKey', ({(17, 29, 17, 33): 'Trip'}, {}), '(Trip)', False, 'from django.db import models\n'), ((18, 16, 18, 43), 'django.db.models.ForeignKey', 'models.ForeignKey', ({(18, 34, 18, 42): 'StopTime'}, {}), '(StopTime)', False, 'from django.db import models\n'), ((19, 19, 19, 49), 'django.db.models.ForeignKey', 'models.ForeignKey', ({(19, 37, 19, 48): 'ServiceDate'}, {}), '(ServiceDate)', False, 'from django.db import models\n'), ((21, 18, 21, 75), 'django.db.models.IntegerField', 'models.IntegerField', (), '', False, 'from django.db import models\n'), ((22, 18, 22, 75), 'django.db.models.IntegerField', 'models.IntegerField', (), '', False, 'from django.db import models\n')]