2020-09-03 05:28:34 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import GRDB
|
2020-10-06 00:50:05 +02:00
|
|
|
import Mastodon
|
2020-09-03 05:28:34 +02:00
|
|
|
|
|
|
|
struct TimelineStatusJoin: Codable, FetchableRecord, PersistableRecord {
|
2020-10-06 00:50:05 +02:00
|
|
|
let timelineId: Timeline.Id
|
|
|
|
let statusId: Status.Id
|
2020-09-03 05:28:34 +02:00
|
|
|
|
2020-09-05 04:05:15 +02:00
|
|
|
static let status = belongsTo(StatusRecord.self)
|
2020-09-03 05:28:34 +02:00
|
|
|
}
|
2020-09-29 08:06:25 +02:00
|
|
|
|
|
|
|
extension TimelineStatusJoin {
|
|
|
|
enum Columns {
|
|
|
|
static let timelineId = Column(TimelineStatusJoin.CodingKeys.timelineId)
|
|
|
|
static let statusId = Column(TimelineStatusJoin.CodingKeys.statusId)
|
|
|
|
}
|
|
|
|
}
|