# Path: pyfeedreader/database.py
# def init_db():
# def drop_all():


from sqlalchemy import Column, Integer, ForeignKey
from pyfeedreader.database import Model
__author__ = 'sis13'



class ReadEntry(Model):
    __tablename__ = "read_entry"
    id = Column('id', Integer, primary_key=True)
    entry_id = Column(Integer)
    user_id = Column(Integer, ForeignKey('user.id'))

    def __init__(self, entry_id, user_id):
        self.entry_id = entry_id

# Path: pyfeedreader/database.py
# def init_db():
# def drop_all():


# Path: pyfeedreader/models/ReadEntries.py
from sqlalchemy import Column, Integer, ForeignKey
from pyfeedreader.database import Model

__author__ = 'sis13'



class ReadEntry(Model):
    __tablename__ = "read_entry"
    id = Column('id', Integer, primary_key=True)
    entry_id = Column(Integer)
    user_id = Column(Integer, ForeignKey('user.id'))

    def __init__(self, entry_id, user_id):
        self.entry_id = entry_id

        self.user_id = user_id