We do not want to store the complete credit card number as that goes against privacy concerns. we only want to store the last 4 digits.
Moreover, use the folder structure where views.py are renamed as viewsets.py and both viewsets.py and urls.py of a single app reside inside the <app_name>/api/v1/ folder.
Scope
Adding related tables to custom Users table This issue is to be performed after #5 is finished.
Description
We need a table named "UserPayment" to hold information about user's credit cards. This table will contain the following fields:
We also need to create CRUD apis for this table:
api/v1/user/<int:user_id>/payment/create
api/v1/user/<int:user_id>/payment/update/<int:user_payment_record>
api/v1/user/<int:user_id>/payment/
api/v1/user/<int:user_id>/payment/delete/<int:user_payment_record>