SANTA CLARA — The San Francisco 49ers have signed first-round pick Reuben Foster to a four-year deal.

The deal announced Friday gives San Francisco eight of its 10 draft picks under contract. No. 3 overall pick Solomon Thomas and quarterback C.J. Beathard, their third-round selection, remain unsigned.

San Francisco traded back into the first round to select Foster 31st overall to upgrade their linebackers. He was named first-team All-America by The Associated Press, SEC Championship Game MVP and won the Butkus Award as the nation’s top linebacker last season for Alabama.

The Niners also signed offensive lineman Andrew Lauderdale to a two-year deal and waived safety Malik Golden to make room on the roster.

BY THE NUMBERS

Stats for three of the Warriors’ best players over the past two seasons:

STEPHEN CURRY, age 27 2014: 36.5 mpg; 24.0 ppg; 4.3 rpg; 8.5 apg; 24.1 PER 2015: 32.9 mpg; 23.4 ppg; 4.3 rpg; 7.9 apg; 27.8 PER

KLAY THOMPSON, age 25 2014: 35.4 mpg; 18.4 ppg; 3.1 rpg; 2.2 apg; 14.3 PER 2015: 32.2 mpg; 21.6 ppg; 3.2 rpg; 2.9 apg; 20.6 PER

DRAYMOND GREEN, age 25 2014: 21.9 mpg; 6.2 ppg; 5.0 rpg; 1.9 apg; 12.7 PER 2015: 31.8 mpg; 11.8 ppg; 8.1 rpg; 3.6 apg; 16.6 PER