mirror of
https://github.com/metabolist/metatext.git
synced 2025-01-07 04:25:24 +00:00
19 lines
448 B
Swift
19 lines
448 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
|
|
|
|
static let status = belongsTo(StatusRecord.self)
|
|
}
|
|
|
|
extension TimelineStatusJoin {
|
|
enum Columns {
|
|
static let timelineId = Column(CodingKeys.timelineId)
|
|
static let statusId = Column(CodingKeys.statusId)
|
|
}
|
|
}
|