// swiftlint:disable all import Amplify import Foundation extension UserSettings14 { // MARK: - CodingKeys public enum CodingKeys: String, ModelKey { case id case language case user case createdAt case updatedAt } public static let keys = CodingKeys.self // MARK: - ModelSchema public static let schema = defineSchema { model in let userSettings14 = UserSettings14.keys model.authRules = [ rule(allow: .public, operations: [.create, .update, .delete, .read]) ] model.pluralName = "UserSettings14s" model.attributes( .primaryKey(fields: [userSettings14.id]) ) model.fields( .field(userSettings14.id, is: .required, ofType: .string), .field(userSettings14.language, is: .optional, ofType: .string), .belongsTo(userSettings14.user, is: .required, ofType: User14.self, targetNames: ["userSettings14UserId"]), .field(userSettings14.createdAt, is: .optional, isReadOnly: true, ofType: .dateTime), .field(userSettings14.updatedAt, is: .optional, isReadOnly: true, ofType: .dateTime) ) } public class Path: ModelPath { } public static var rootPath: PropertyContainerPath? { Path() } } extension UserSettings14: ModelIdentifiable { public typealias IdentifierFormat = ModelIdentifierFormat.Default public typealias IdentifierProtocol = DefaultModelIdentifier } extension ModelPath where ModelType == UserSettings14 { public var id: FieldPath { string("id") } public var language: FieldPath { string("language") } public var user: ModelPath { User14.Path(name: "user", parent: self) } public var createdAt: FieldPath { datetime("createdAt") } public var updatedAt: FieldPath { datetime("updatedAt") } }