When an Opportunity moves to StageName = 'Closed Won' (i.e. it was not Closed Won before the update), set its parent Account's Type to 'Customer'.
Requirements:
Trigger.oldMap.Trigger.oldMap.get(opp.Id) to read prior values.Set, then do one db.update.