// swiftlint:disable all import Amplify import Foundation extension ListIntContainer { // MARK: - CodingKeys public enum CodingKeys: String, ModelKey { case id case test case nullableInt case intList case intNullableList case nullableIntList case nullableIntNullableList case createdAt case updatedAt } public static let keys = CodingKeys.self // MARK: - ModelSchema public static let schema = defineSchema { model in let listIntContainer = ListIntContainer.keys model.pluralName = "ListIntContainers" model.attributes( .primaryKey(fields: [listIntContainer.id]) ) model.fields( .field(listIntContainer.id, is: .required, ofType: .string), .field(listIntContainer.test, is: .required, ofType: .int), .field(listIntContainer.nullableInt, is: .optional, ofType: .int), .field(listIntContainer.intList, is: .required, ofType: .embeddedCollection(of: Int.self)), .field(listIntContainer.intNullableList, is: .optional, ofType: .embeddedCollection(of: Int.self)), .field(listIntContainer.nullableIntList, is: .required, ofType: .embeddedCollection(of: Int.self)), .field(listIntContainer.nullableIntNullableList, is: .optional, ofType: .embeddedCollection(of: Int.self)), .field(listIntContainer.createdAt, is: .optional, isReadOnly: true, ofType: .dateTime), .field(listIntContainer.updatedAt, is: .optional, isReadOnly: true, ofType: .dateTime) ) } public class Path: ModelPath { } public static var rootPath: PropertyContainerPath? { Path() } } extension ListIntContainer: ModelIdentifiable { public typealias IdentifierFormat = ModelIdentifierFormat.Default public typealias IdentifierProtocol = DefaultModelIdentifier } extension ModelPath where ModelType == ListIntContainer { public var id: FieldPath { string("id") } public var test: FieldPath { int("test") } public var nullableInt: FieldPath { int("nullableInt") } public var intList: FieldPath { int("intList") } public var intNullableList: FieldPath { int("intNullableList") } public var nullableIntList: FieldPath { int("nullableIntList") } public var nullableIntNullableList: FieldPath { int("nullableIntNullableList") } public var createdAt: FieldPath { datetime("createdAt") } public var updatedAt: FieldPath { datetime("updatedAt") } }