Create model classes for a session and a transaction.