save image in core data

This commit is contained in:
Bob Sun 2017-02-09 14:41:59 +08:00
parent bcf4fd909e
commit e2036f202f
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 10 additions and 2 deletions

View file

@ -6,6 +6,7 @@
<relationship name="password" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="PasswordEntity" inverseName="categories" inverseEntity="PasswordEntity" syncable="YES"/>
</entity>
<entity name="PasswordEntity" representedClassName="PasswordEntity" syncable="YES" codeGenerationType="class">
<attribute name="image" optional="YES" attributeType="Binary" syncable="YES"/>
<attribute name="name" attributeType="String" syncable="YES"/>
<attribute name="raw" optional="YES" attributeType="Binary" syncable="YES"/>
<attribute name="rawPath" attributeType="String" syncable="YES"/>
@ -13,6 +14,6 @@
</entity>
<elements>
<element name="PasswordCategoryEntity" positionX="115" positionY="-9" width="128" height="90"/>
<element name="PasswordEntity" positionX="-63" positionY="-18" width="128" height="105"/>
<element name="PasswordEntity" positionX="-63" positionY="-18" width="128" height="120"/>
</elements>
</model>