Airlock Side View:
  Z1   XXXXXRRR___L     
  Z0   D_____/XXXXX
D = Raising drawbridge
/ = Ramp
_ = Floor
R = Retracting bridge
X = Solid Rock or Constructed Wall
L = Lever Construct from the left to the right. Build and attach the Raising drawbridge to a lever. The build and attach the retracting one.