You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
412 B
20 lines
412 B
//
|
|
// Relationship.swift
|
|
// LeStorage
|
|
//
|
|
// Created by Laurent Morvillier on 27/11/2024.
|
|
//
|
|
|
|
public struct Relationship {
|
|
|
|
public init(type: any Storable.Type, keyPath: AnyKeyPath) {
|
|
self.type = type
|
|
self.keyPath = keyPath
|
|
}
|
|
|
|
/// The type of the relationship
|
|
var type: any Storable.Type
|
|
|
|
/// the keyPath to access the relationship
|
|
var keyPath: AnyKeyPath
|
|
}
|
|
|