CREATE VIEW test_plan AS
SELECT
uniform_resource_id,
JSON_EXTRACT(frontmatter, '$.id') AS id,
JSON_EXTRACT(frontmatter, '$.name') AS name,
JSON_EXTRACT(frontmatter, '$.description') AS description,
JSON_EXTRACT(frontmatter, '$.created_by') AS created_by,
JSON_EXTRACT(frontmatter, '$.created_at') AS created_at,
JSON_EXTRACT(frontmatter, '$.tags') AS tags,
JSON_EXTRACT(frontmatter, '$.related_requirements') AS related_requirements,
json_extract(content_fm_body_attrs, '$.body') AS body
FROM
uniform_resource
WHERE uri LIKE '%qf-plan.md'