Source code for seriesmarker.persistence.model.episode_extra

#==============================================================================
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 - 2016 Tobias Röttger <toroettg@gmail.com>
#
# This file is part of SeriesMarker.
#
# SeriesMarker is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# SeriesMarker is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SeriesMarker.  If not, see <http://www.gnu.org/licenses/>.
#==============================================================================

from seriesmarker.persistence.database import Base
from sqlalchemy.schema import Column, ForeignKey
from sqlalchemy.types import Integer, Boolean

[docs]class EpisodeExtra(Base): """This class stores extra informations about an episode, e.g., if it has been watched.""" __tablename__ = "episode_extra" id = Column('id', Integer, primary_key=True) extra_id = Column(Integer, ForeignKey('episode.id')) watched = Column('watched', Boolean)
[docs] def __repr__(self): return "<EpisodeExtra('%s' '%s')>" % self.id, self.extra_id