mirror of
https://github.com/metabolist/metatext.git
synced 2024-05-24 03:08:13 +00:00
19 lines
440 B
Swift
19 lines
440 B
Swift
// 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")]))
|
|
}
|