consider a database with one table called "user" having two fields: "id" (type: INTEGER, PRIMARY KEY) code example
Example: create id to primary using query
ALTER TABLE lead_offer_notes ADD PRIMARY KEY (id);
ALTER TABLE lead_offer_notes ADD PRIMARY KEY (id);