Add triggers to device schema