Although there were differences by age, the regulations based on the Taiho ritsuryo code (code promulgated in the Taiho period) and Yoro ritsuryo code (code promulgated in the Yoro period) stipulated as follows.
時代によって違うものの、大宝律令・養老律令の規定に基づけば以下とされていた。