/Library/Preferences/com.apple.MobileSMS.plist is shown in this slide. If you are missing message from the device, this is a great place to start.
KeepMessageForDays 0 = Forever, 365 = 1 year, 30 = 30 days – iOS 14+
KeepMessageForDays NULL Value = Forever, 365 = 1 year, 30 = 30 days - iOS13 and below