pg数据库varhcar自动生成主键

pg数据库 主键只能是varchar类型。不能用uuid,只能自己写主键生成方法吗?

image
已经解决