Version 1 (modified by 14 years ago) ( diff ) | ,
---|
Table of Contents
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 Name | Purpose | Datatype/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) |
subscribed | The subscribed status of the user to a particular saved search. | boolean |
search_vars | The search parameters for the search saved by the user | string (Assumption for the time being) |
person_id | The person_id of the user who saves the search | FK referenced from pr_person |
Subscription
Holds information about the subscription details. The data model can be found in models/msg.py.
Field Name | Purpose | Datatype/table |
timestamp | Keeps the track of created and modified time. | datetime |
user_id | The user_id of the user who selects the subscription mode | FK referenced from auth_user.id (integer) |
subscribe_mode | Describes the mode(s) of subscription selected | |
subscription_frequency | The frequency at which the subscription are to be sent. | |
person_id | The person_id of the user who saves the search | FK referenced from pr_person |
Note:
See TracWiki
for help on using the wiki.