Tables and models for Transactions and Orders