If a building, which an architect or other workman has undertaken to make by the job, should fall to ruin either in whole or in part, on account of the badness of the workmanship, the architect or undertaker shall bear the loss if the building falls to ruin in the course of ten years, if it be a stone or brick building, and of five years if it be built in wood or with frames filled with bricks.
La. C.C. § 2762