adds check constraint on book format