diff options
Diffstat (limited to 'app/python/rcal')
-rw-r--r-- | app/python/rcal/model.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py index 705fba2..3ecfceb 100644 --- a/app/python/rcal/model.py +++ b/app/python/rcal/model.py @@ -124,9 +124,11 @@ class Category(BASE): user_selections = Table( 'user_selections', BASE.metadata, Column('_user', Integer, - ForeignKey('users.id', onupdate='CASCADE', ondelete='CASCADE')), + ForeignKey('users.id', onupdate='CASCADE', ondelete='CASCADE'), + primary_key=True), Column('_calendar', String(255), - ForeignKey('calendars.uid', onupdate='CASCADE', ondelete='CASCADE')) + ForeignKey('calendars.uid', onupdate='CASCADE', ondelete='CASCADE'), + primary_key=True) ) |