Closed andrejberg closed 5 years ago
Add status
attribute to Main table. Can be used for
OR
two attributes deleted
and archived
which are of type bool
. should be more effective when checking for this attributes than string comparison but is less flexible than first option.
Do we need the status attribute?
Can't we add a keyword for status
= deleted= or
archived` instead? Since the majority is active anyway?
I think we have two options for the GroupKeywords
.:
GroupKeywords
for the keywordsKeywords
by a column table
, so we store everything in the same and go with .join(Main).filter(_and(Main.id == Keywords.main_id , Keywords.table == 'main')
to get keywords for the main table, and table = 'group's for groupsGroup Keywords: I would guess that making an extra table will be the better solution. Makes life easier
Status:
Hm, why we should do this? (adding Keyword status
) So that we have to add exceptions in all Keywords functions (so that the status keyword is not returned) and also return an error message if someone tries to add a keyword status=very_important
?
priority
attribute to each DB Table to store information about source of information(please edit)