Enables id to be auto-populated on first save