-
Points required for a particular product is stored in two different tables: "reward_perks" and "store_product". Make sure it is managed in business workflow. Allows flexibility but must be careful in managing this.
-
Review on delete rules
-
maybe add time as well to the dates
-
each user related stuff should have a deleted boolean, soo things are not actually deleted (for regulation or analysis)
-
CHeck all primary keys are done correctly
-
check database type are all done correctly
- Include database verification during CI/CD
- Since there are two entry points now (server and worker) Dockerfile needs to be updated and the main.go for worker needs to be fulfilled
- repository layer (speaks to database)
- service layer (links http request to database, while processing business requests)
- handler layer (handles http/api endpoints requests)
- Need to validate transaction (through pos etc)