Implementing Database Logic - Contracts for bills table and billinstances table