Generate a id for the DBModel. Internally this will generate an ID for newly created documents.
Can be null. If it is null, random id will be given to the created document.
String? get id => ref?.id;