Mercurial > kallithea
changeset 5025:71c71956b280
db: simplify UserNotification model
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> |
---|---|
date | Mon, 02 Feb 2015 00:13:05 +0100 |
parents | 3533ee5cbb62 |
children | ff0fcf15ffe6 |
files | kallithea/model/db.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/model/db.py Mon Feb 02 00:11:56 2015 +0100 +++ b/kallithea/model/db.py Mon Feb 02 00:13:05 2015 +0100 @@ -2407,10 +2407,10 @@ {'extend_existing': True, 'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8', 'sqlite_autoincrement': True} ) - user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), primary_key=True) - notification_id = Column("notification_id", Integer(), ForeignKey('notifications.notification_id'), primary_key=True) - read = Column('read', Boolean, default=False) - sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None) + user_id = Column(Integer(), ForeignKey('users.user_id'), primary_key=True) + notification_id = Column(Integer(), ForeignKey('notifications.notification_id'), primary_key=True) + read = Column(Boolean, default=False) + sent_on = Column(DateTime(timezone=False), nullable=True, unique=None) user = relationship('User') notification = relationship('Notification')