update collection entity schema, add generate color function