Created
August 13, 2019 19:27
-
-
Save dmytro-anokhin/eeb4aef3611b3d6a3224224b227c8356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <model> | |
| <entity name="Article" representedClassName="Article" parentEntity="Publication" syncable="YES" codeGenerationType="class"> | |
| <attribute name="text" optional="YES" attributeType="String"/> | |
| </entity> | |
| <entity name="Author" representedClassName="Author" syncable="YES" codeGenerationType="class"> | |
| <attribute name="fullName" optional="YES" attributeType="String"/> | |
| <relationship name="publications" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Publication" inverseName="author" inverseEntity="Publication"/> | |
| </entity> | |
| <entity name="Publication" representedClassName="Publication" isAbstract="YES" syncable="YES" codeGenerationType="class"> | |
| <attribute name="numberOfViews" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/> | |
| <attribute name="publishDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/> | |
| <relationship name="author" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="Author" inverseName="publications" inverseEntity="Author"/> | |
| </entity> | |
| </model> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment