metatext/DB/Sources/DB/Content/LoadMoreRecord.swift

20 lines
515 B
Swift
Raw Normal View History

2020-10-03 09:19:05 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
import Mastodon
2020-10-14 00:28:27 +00:00
struct LoadMoreRecord: ContentDatabaseRecord, Hashable {
2020-10-05 22:50:05 +00:00
let timelineId: Timeline.Id
let afterStatusId: Status.Id
let beforeStatusId: Status.Id
2020-10-03 09:19:05 +00:00
}
extension LoadMoreRecord {
enum Columns {
2020-11-13 00:13:09 +00:00
static let timelineId = Column(CodingKeys.timelineId)
static let afterStatusId = Column(CodingKeys.afterStatusId)
static let beforeStatusId = Column(CodingKeys.beforeStatusId)
2020-10-03 09:19:05 +00:00
}
}