// 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")])) }