How do I give myself a pickaxe with multiple abilities?

I'm trying to make a map where it give you a golden pickaxe with the durability all the way down to just one hit, and at the same time only able to break glass. I already know how to do these two separate commands, but is it possible to put them in the same tool in 1.14?


Solution 1:

As FlabbyTabby said in the comments, they found the way to do it. Here is what they did:
/give @p minecraft:golden_pickaxe{CanDestroy:['glass'],Damage:31}