Add uniqueness constraint on alias, remove views attribute

This commit is contained in:
Angelo Stavrow 2020-09-02 11:14:19 -04:00
parent 09d1d76d47
commit f235a0c2d0
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 10 additions and 7 deletions

View File

@ -8,9 +8,13 @@
<attribute name="styleSheet" optional="YES" attributeType="String"/>
<attribute name="title" attributeType="String"/>
<attribute name="url" optional="YES" attributeType="String"/>
<attribute name="views" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="alias"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<elements>
<element name="WFACollection" positionX="-18" positionY="27" width="128" height="149"/>
<element name="WFACollection" positionX="-18" positionY="27" width="128" height="134"/>
</elements>
</model>

View File

@ -8,16 +8,15 @@ extension WFACollection {
}
@NSManaged public var alias: String?
@NSManaged public var title: String?
@NSManaged public var blogDescription: String?
@NSManaged public var styleSheet: String?
@NSManaged public var isPublic: Bool
@NSManaged public var views: Int16
@NSManaged public var email: String?
@NSManaged public var isPublic: Bool
@NSManaged public var styleSheet: String?
@NSManaged public var title: String?
@NSManaged public var url: String?
}
extension WFACollection: Identifiable {
extension WFACollection : Identifiable {
}