Skip to content

Commit 8aae5ba

Browse files
committed
Add default implementation for Entity properties
1 parent cfb92ae commit 8aae5ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/CoreModel/Entity.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public extension Entity {
2929
static var entityName: EntityName {
3030
EntityName(rawValue: String(describing: Self.self))
3131
}
32+
33+
static var attributes: [CodingKeys: AttributeType] { [:] }
34+
35+
static var relationships: [CodingKeys: Relationship] { [:] }
3236
}
3337

3438
public extension Model {

0 commit comments

Comments
 (0)