This doesn't make any sense unless for some reason you are creating unix users based on the users in your application and using the application user ID as the unix user ID which would be silly.
The convention of 0 as NULL is more likely, as UID 0 doesn't really make sense in this context.