-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathNoteData.swift
More file actions
37 lines (35 loc) · 955 Bytes
/
Copy pathNoteData.swift
File metadata and controls
37 lines (35 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// swiftlint:disable all
import Amplify
import Foundation
public struct NoteData: Model {
public let id: String
public var name: String
public var description: String?
public var image: String?
public var createdAt: Temporal.DateTime?
public var updatedAt: Temporal.DateTime?
public init(id: String = UUID().uuidString,
name: String,
description: String? = nil,
image: String? = nil) {
self.init(id: id,
name: name,
description: description,
image: image,
createdAt: nil,
updatedAt: nil)
}
internal init(id: String = UUID().uuidString,
name: String,
description: String? = nil,
image: String? = nil,
createdAt: Temporal.DateTime? = nil,
updatedAt: Temporal.DateTime? = nil) {
self.id = id
self.name = name
self.description = description
self.image = image
self.createdAt = createdAt
self.updatedAt = updatedAt
}
}