Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Case 1: Existing user, will be flagged with terms & conditions flag will be set to false.
  • Case 2: Whenever a new user registers his terms&conditions flag will be set to false.
  • Case 3: When the terms & conditions are changed - all the affected user's terms&conditions flag will be set to falseIn this scenario we will get the accepted version of TAC from user and the latest version of TAC from systemSetting, if there is any difference in the version we will ask user to accept the TAC again.

After login, we will detect - if user needs to accept the terms of condition - in either of above cases, we will present him with screen to accept the same.

...

  1. A new row will be inserted in the TAC table 
  2. We have to update the latest version of tac in system setting table


DB changes 

  • We need to create TAC table which will contain

    column →  id, version, content, created on, created by, updated on, updated by

    column 

    Column NamePurpose
    idPrimary key of the table, auto-generated
    version

    version of TAC

    contenthtml content
    created oncreated date 
    created byuser- who created it
    updatedOnlast updated on
    updated byuser- who updated it


  • We need system setting  which contains the latest version id of TAC
  • We need to add ( tacStatus, tacAcceptedDate, tacVersionId) columns in user table and we can drop (tcstatus,    tcupdateddate) as we are not using them 

...

     2. Get TAC

        GET /v1/tac/read Response

            For fetching TAC we will get the current version of the TAC from system setting and then fetch the particular TAC from table


 Response

200 OK - Terms updated successfully

...