// swiftlint:disable all import Amplify import Foundation extension Comment6 { // MARK: - CodingKeys public enum CodingKeys: String, ModelKey { case id case post case content case createdAt case updatedAt } public static let keys = CodingKeys.self // MARK: - ModelSchema public static let schema = defineSchema { model in let comment6 = Comment6.keys model.pluralName = "Comment6s" model.attributes( .index(fields: ["postID", "content"], name: "byPost") ) model.fields( .id(), .belongsTo(comment6.post, is: .optional, ofType: Post6.self, targetName: "postID"), .field(comment6.content, is: .required, ofType: .string), .field(comment6.createdAt, is: .optional, isReadOnly: true, ofType: .dateTime), .field(comment6.updatedAt, is: .optional, isReadOnly: true, ofType: .dateTime) ) } }