// swiftlint:disable all import Amplify import Foundation extension MyCustomModel8 { // MARK: - CodingKeys public enum CodingKeys: String, ModelKey { case id case name case desc case children } public static let keys = CodingKeys.self // MARK: - ModelSchema public static let schema = defineSchema { model in let myCustomModel8 = MyCustomModel8.keys model.pluralName = "MyCustomModel8s" model.fields( .field(myCustomModel8.id, is: .required, ofType: .string), .field(myCustomModel8.name, is: .required, ofType: .string), .field(myCustomModel8.desc, is: .optional, ofType: .string), .field(myCustomModel8.children, is: .optional, ofType: .embeddedCollection(of: MyNestedModel8.self)) ) } }