enhance(srv): Let DB generate Drug::id UUID instead of app service
Later versions of Postgres can generate Uuids with DEFAULT gen_random_uuid ()
. Check if this can be done with SeaORM and, if so, simplify logic around Drug::id
and NewDrug
.
Later versions of Postgres can generate Uuids with DEFAULT gen_random_uuid ()
. Check if this can be done with SeaORM and, if so, simplify logic around Drug::id
and NewDrug
.