mirror of
https://github.com/metabolist/metatext.git
synced 2024-05-20 09:18:25 +00:00
22 lines
520 B
Swift
22 lines
520 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import GRDB
|
|
import Mastodon
|
|
|
|
struct TimelineStatusJoin: ContentDatabaseRecord {
|
|
let timelineId: Timeline.Id
|
|
let statusId: Status.Id
|
|
let order: Int?
|
|
|
|
static let status = belongsTo(StatusRecord.self)
|
|
}
|
|
|
|
extension TimelineStatusJoin {
|
|
enum Columns {
|
|
static let timelineId = Column(CodingKeys.timelineId)
|
|
static let statusId = Column(CodingKeys.statusId)
|
|
static let order = Column(CodingKeys.order)
|
|
}
|
|
}
|