You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

965 B

layout title date tags
post เลขประจำตวประชาชนอตโนม 2013-12-23 people_id

เลขอตโนมสำหรบบคคลทไมเลข 13 หลก ระบบจะสรางเลขอตโนมนตามน เพอปองกนโอกาสทจะเกดเลขซำซอนข

if this returns auto, then we make up people_id for the system.
   Pxx1387767388 (13-char ID)
   | |     |
   | |     -- UTC UNIX Timestamp (it should be 10-digit for a while)
   | -------- first digits of sha1(school_id) 
   |            > this should make it more immune to duplicate
   ---------- P -- showing that it's AUTO people_id

This way -- It's not possible to have a duplicate ID.. 
           time machine isn't existed yet.