wiki:DeveloperGuidelines/SaveSearchAndSubscription

Version 1 (modified by Pratyush Nigam, 10 years ago) ( diff )

--

Save Search & Subscription

Purpose

The save search and subscription functionality can be used to enable to save the searches he makes and would like to revisit in future or subscribe to them to get updates on a daily/weekly/monthly basis.

Data Model

Data Model

Save Search

Holds information about the search query and the parameters that are saved by the user. The data model can be found in models/04_pr.py.

Field NamePurposeDatatype/table
timestamp Keeps the track of time of creation and subsequent modifications. datetime
user_id The user id of the user who saved the search. FK referenced from auth_user.id (integer)
subscribedThe subscribed status of the user to a particular saved search.boolean
search_varsThe search parameters for the search saved by the userstring (Assumption for the time being)
person_idThe person_id of the user who saves the searchFK referenced from pr_person

Subscription

Holds information about the subscription details. The data model can be found in models/msg.py.

Field NamePurposeDatatype/table
timestamp Keeps the track of created and modified time. datetime
user_idThe user_id of the user who selects the subscription mode FK referenced from auth_user.id (integer)
subscribe_modeDescribes the mode(s) of subscription selected
subscription_frequencyThe frequency at which the subscription are to be sent.
person_idThe person_id of the user who saves the searchFK referenced from pr_person
Note: See TracWiki for help on using the wiki.