// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Amplify import Foundation public struct Book: Model { public let id: String public let title: String // hasMany(associatedWith: "book") public var authors: List public init(id: String = UUID().uuidString, title: String, authors: List = []) { self.id = id self.title = title self.authors = authors } }