CREATE TABLE IF NOT EXISTS stock.buyOutOrder ( orderFk INT, rowFk INT, UNIQUE(rowFk), INDEX(orderFk) );