Oops, I've got strings there too - when swapping instead of playing tiles:
You should probably add:
jsonb_array_length(tiles) > 0
as a check constraint on column
David J.
Oops, I've got strings there too - when swapping instead of playing tiles: