metatext/DB/Sources/DB/Content/StatusContextJoin.swift

19 lines
440 B
Swift
Raw Normal View History

2020-09-03 03:28:34 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
struct StatusContextJoin: Codable, FetchableRecord, PersistableRecord {
enum Section: String, Codable {
case ancestors
case descendants
}
let parentId: String
let statusId: String
let section: Section
let index: Int
static let status = belongsTo(StoredStatus.self, using: ForeignKey([Column("statusId")]))
}