diff options
-rw-r--r-- | fietsboek/models/track.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py index e9a6da5..4ee25a0 100644 --- a/fietsboek/models/track.py +++ b/fietsboek/models/track.py @@ -400,8 +400,6 @@ class TrackCache(Base): information (such as length, uphill, downhill, ...) is stored in a :class:`TrackCache`. - :ivar id: Database ID. - :vartype id: int :ivar track_id: ID of the track this cache belongs to. :vartype track_id: int :ivar length: Length of the track, in meters. @@ -427,8 +425,7 @@ class TrackCache(Base): """ # pylint: disable=too-many-instance-attributes,too-few-public-methods __tablename__ = 'track_cache' - id = Column(Integer, primary_key=True) - track_id = Column(Integer, ForeignKey('tracks.id'), unique=True) + track_id = Column(Integer, ForeignKey('tracks.id'), primary_key=True) length = Column(Float) uphill = Column(Float) downhill = Column(Float) |