Created
September 6, 2020 06:08
-
-
Save hrvolapeter/f7518d9b782dc7948b866b1ff178c542 to your computer and use it in GitHub Desktop.
Zetten note model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import FirebaseFirestore | |
| import FirebaseFirestoreSwift | |
| import Foundation | |
| import GRDB | |
| struct Note: Codable, Identifiable { | |
| var id: String = UUID().uuidString | |
| var title: String | |
| var createdTime = Timestamp() | |
| var content: String | |
| var userId: String? | |
| var deleted: Timestamp? | |
| var parentId: String? | |
| var tags: [String] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment