added some date constraints to works schema