CREATE VIEW "code_notebook_sql_cell_migratable" AS
-- code provenance: `RssdInitSqlNotebook.notebookBusinessLogicViews` (file:///home/baasit/www.surveilr.com/lib/std/lifecycle.sql.ts)
-- All cells that are candidates for migration (latest only)
SELECT c.*,
CASE WHEN c.cell_name LIKE '%_once_%' THEN FALSE ELSE TRUE END AS is_idempotent
FROM code_notebook_cell_latest c
WHERE c.notebook_name = 'ConstructionSqlNotebook'
ORDER BY c.cell_name