Bulid entity and history table for purchasing points