CREATE TRIGGER `RES-insert` BEFORE INSERT ON `RES` FOR EACH ROW SET NEW.res_created=NOW();