@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix edu: <https://knobit.org/def/> .
@prefix knobit: <https://knobit.org/id/knobit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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-613 a edu:Knobit ;
    rdfs:label "Recognises a referential action destroying what should survive"@en ;
    dcterms:identifier "K-613" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 04-physical, row 13; Codd 1979 §2.1; E&N 6.2; Codd 1971"@en ;
    owl:sameAs <https://bitbucket.org/reffa/ontology/id/knobit/data-modelling/06-physical/13> ;
    skos:altLabel "Referential action deletes or erases what should survive (physical model)"@en ;
    skos:definition "`ON DELETE CASCADE` or `SET NULL` on a relationship whose child has a life of its own. A deletion anomaly made automatic: deleting one fact silently deletes or erases another."@en ;
    skos:prefLabel "Recognises a referential action destroying what should survive"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-653 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `fk_payment_account` with `on_delete: cascade`: purging a closed account deletes its payments and holds. `fk_payment_authorised_by` with `set null`: deleting a user erases who authorised the payment Acceptable: `on_delete: restrict` by default; `cascade` only for children that cannot exist without the parent (an instalment with its repayment schedule), with the data rule cited"@en ;
    edu:assessmentMethod "skill-tests task: Loan application physical model on Snowflake (physical design anomaly skills)"@en ;
    edu:conformsToProfile <https://oppekava.edu.ee/a/Knobitite_kirjeldamise_ja_seostamise_reeglid#LCG-KNOBIT-0.1> ;
    edu:contextFunction <https://knobit.org/def/contextFunction/resultEvaluation> ;
    edu:creationMethod <https://knobit.org/def/creationMethod/aiGeneratedHumanEdited> ;
    edu:dependsOnKnobit knobit:K-503 ;
    edu:expectedResult "The action and the child to keep"@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 "ON DELETE CASCADE or SET NULL"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling .

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

knobit:K-503 rdfs:label "Recognises a deletion anomaly in a logical data model"@en .

knobit:K-653 rdfs:label "Explains referential integrity and referential actions"@en .

