Not getting view and edit links on a duplicated table

I am making a duplicate table for archiving data using

CREATE TABLE `new_table` AS
SELECT * FROM `original_table` WHERE `some condition exists`;

ALTER TABLE `new_table`
ADD PRIMARY KEY (`id`),
MODIFY COLUMN `id` INT NOT NULL AUTO_INCREMENT;

the problem is that when I sync my project and generate the code I don't get any of the normal view, edit, delete links.

Any idea why? And how to fix?

TIA - Greg

After you sync your project with your database, check if the primary key of the new table is detected (it should be), if not, make sure you select the primary key in Field Setup page yourself. If no primary key, there are no view/edit/delete pages (because the record cannot be retrieved).