registration table
broker_id , email , affiliate_id.....etc
40 abc@gmail.com 9999
62 xyz@gmail.com 8888
affiliate_Stats table
status_id , affiliate_id , banner_id , campaign_id , clicks impressioins , ctr , sale , sale_price, total_earned...etc
27 9999 3 0 0 1 0
29 9999 3 0 1 0 0
affiliate_chain
id name recruitedby user_id
17 Test 0 40
18 check 17 62
Above is my tables structure in mysql. i want to make a three tier affiliate system...
i am just tracking if some one viewed banner and then just saving records as you can see impressions is "1". if user clicks on
banner , then another records will save and i am storing clicks "1". i have some doubt can any one guide me to achive in write way
- i am just struggling with database design for above (not sure).
- How to set above table in correct way.
- i am keeping sale , price ..etc in stats table is it write?
any help will be apprciated.