@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix edu: <https://knobit.org/def/> .
@prefix knobit: <https://knobit.org/id/knobit/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix register: <https://knobit.org/id/register/> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

knobit:K-802 a edu:Knobit ;
    rdfs:label "Recognises DDL older than its model"@en ;
    dcterms:identifier "K-802" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 05-ddl, row 2; this skill (08-ddl.md)"@en ;
    skos:altLabel "DDL older than the model (generated DDL)"@en ;
    skos:definition "Generated SQL that predates the last change to `physical-model.yaml`. The model is the truth, so the SQL is a faithful rendering of an earlier truth, and a reviewer who reads only the SQL is reviewing last month's design."@en ;
    skos:prefLabel "Recognises DDL older than its model"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-851,
        knobit:K-916 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `loan_arrears_day_count` added to `dim_account` two commits ago; `08-ddl/postgres/01_create_tables.sql` has no such column and the stage-8 review passes Acceptable: Regeneration for every configured dialect in the same commit as the model change, so the SQL is never a separate decision"@en ;
    edu:assessmentMethod "skill-tests task: Generated DDL review, Postgres and Snowflake (DDL review skills)"@en ;
    edu:contextFunction <https://knobit.org/def/contextFunction/resultEvaluation> ;
    edu:creationMethod <https://knobit.org/def/creationMethod/aiGeneratedHumanEdited> ;
    edu:expectedResult "The stale file and the regeneration needed"@en ;
    edu:graphRelevance <https://knobit.org/def/graphRelevance/learnerState>,
        <https://knobit.org/def/graphRelevance/taskSelection> ;
    edu:knobitType <https://knobit.org/def/knobitType/skill> ;
    edu:targetObject "generated DDL"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling .

edu:Knobit rdfs:label "Knobit"@en,
        "Knobit"@et .

knobit:K-851 rdfs:label "Explains generated artefacts and their single source of truth"@en .

knobit:K-916 rdfs:label "Explains data model versioning and change management"@en .

