1) lose the redundant / on line 8. It should be the word:
end;
when you get an error like that, simply:
SQL> show errors trigger detail_recordt_trigger
2) your client application could provide it instead. If you want LOGIC behind the table, we do that with a trigger. You can put the logic IN FRONT of the table by coding it in your application. Totally 100% up to you.