For files you need to be doing the auto generation but for database you can always have the priviledge of using the database field.