Skip to content

Commit

Permalink
chore: set deletetionRule as Cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
rnr committed Sep 30, 2024
1 parent 728a416 commit 188cc6b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22758" systemVersion="23F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23231" systemVersion="24A335" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="CDAssignment" representedClassName="CDAssignment" syncable="YES" codeGenerationType="class">
<attribute name="complete" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
<attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="descript" optional="YES" attributeType="String"/>
<attribute name="firstComponentBlockId" optional="YES" attributeType="String"/>
<attribute name="title" optional="YES" attributeType="String"/>
<attribute name="type" optional="YES" attributeType="String"/>
<relationship name="futureAssignment" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrimaryCourse" inverseName="futureAssignments" inverseEntity="CDPrimaryCourse"/>
<relationship name="pastAssignments" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrimaryCourse" inverseName="pastAssignments" inverseEntity="CDPrimaryCourse"/>
<relationship name="futureAssignment" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="CDPrimaryCourse" inverseName="futureAssignments" inverseEntity="CDPrimaryCourse"/>
<relationship name="pastAssignments" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="CDPrimaryCourse" inverseName="pastAssignments" inverseEntity="CDPrimaryCourse"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="title"/>
Expand Down Expand Up @@ -56,12 +56,12 @@
<attribute name="progressEarned" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="progressPossible" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="resumeTitle" optional="YES" attributeType="String"/>
<relationship name="futureAssignments" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDAssignment" inverseName="futureAssignment" inverseEntity="CDAssignment"/>
<relationship name="pastAssignments" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDAssignment" inverseName="pastAssignments" inverseEntity="CDAssignment"/>
<relationship name="futureAssignments" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDAssignment" inverseName="futureAssignment" inverseEntity="CDAssignment"/>
<relationship name="pastAssignments" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDAssignment" inverseName="pastAssignments" inverseEntity="CDAssignment"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="courseID"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
</model>
</model>

0 comments on commit 188cc6b

Please sign in to comment.