Folks i am using postgresql and sequelize ORM i am confused that should i create a model Giftcard and store Giftcard codes of diffrent types their or i should create diffrent models for it . I assume create a Giftcard model something like type : Myntra amount : 500$ used : boolean code : XXXXXXXX790-7654
so i am using crud so i should use this model or just use something better could someone pls help , also if i go through this model how do i make sure that for example user select 50$ as amount in giftcard myntra , when user purchases it simply selects random column from codes and send it. I look forward for help from your side , Thanks in Advance