25 lines
488 B
Swift
25 lines
488 B
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// swiftlint:disable all
|
|
import Amplify
|
|
import Foundation
|
|
|
|
public struct Post4: Model {
|
|
public let id: String
|
|
public var title: String
|
|
public var comments: List<Comment4>?
|
|
|
|
public init(id: String = UUID().uuidString,
|
|
title: String,
|
|
comments: List<Comment4>? = []) {
|
|
self.id = id
|
|
self.title = title
|
|
self.comments = comments
|
|
}
|
|
}
|