purchasing

added a purchasing table, views and proper relations