Skip to content

Instantly share code, notes, and snippets.

@hrvolapeter
Created September 6, 2020 06:08
Show Gist options
  • Select an option

  • Save hrvolapeter/f7518d9b782dc7948b866b1ff178c542 to your computer and use it in GitHub Desktop.

Select an option

Save hrvolapeter/f7518d9b782dc7948b866b1ff178c542 to your computer and use it in GitHub Desktop.
Zetten note model
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