By default, our user management system manages reading records according to the __readingHistoryTable__ . You can refer to the following SQL statement to create ** __readingHistoryTable__**.
1 |
|
rreportName is the report name you defined in the report management system.
username is the user name you defined in the User Management System (/maintenance/UserManagement/).
lastReadingTime is the last time the user reads the report.
readingCount is the total number of times users read the report.
At the same time, you need to add a lastModifyTime column to __reportTable__ .
1 |
|
User’s reading progress will be defined according to the lastModifyTime column in __reportTable__ and the lastReadingTime column in __readingHistoryTable__ . If lastReadingTime is later than lastModifyTime then read , less than updated , and if lastReadingTime is NULL then unread .
Data in __readingHistoryTable__ will automatically updated according to users’ actual reading situation. You just need to modify the lastModifyTime column of **__ reportTable__ ** when you create or modify a report.