A representation theorem for complete local rings