lkuessner / patreon-clone-api

2 stars 0 forks source link

feat(users payment): add payment table in relation with our custom `User` model #9

Open Blankscreen-exe opened 4 weeks ago

Blankscreen-exe commented 4 weeks ago

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:

IMPORTANT NOTE:

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.