Added model for tenant. Added tests for connection, batch, tenant, schedules.