You plan to buy the villa in your daughter's name and secure user right, by having a usufruct in ur own name.
Should be doable, with only two minor issues.
1. Max 30 years, so if you are young and have a fallout with your daughter, you will be sent packing after 30 years.
2. A bit morbid, but say your daughter get mixed up with the wrong people and get a bf that are on drugs. You have now broken the #1 rule in the farang survival book: Never be worth more dead than alive.