metatext/DB/Sources/DB/Content/LastReadIdRecord.swift

18 lines
379 B
Swift
Raw Normal View History

2020-10-27 03:01:12 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
import Mastodon
struct LastReadIdRecord: ContentDatabaseRecord, Hashable {
2021-02-08 20:33:51 +00:00
let timelineId: Timeline.Id
2020-10-27 03:01:12 +00:00
let id: String
}
extension LastReadIdRecord {
enum Columns {
2021-02-08 20:33:51 +00:00
static let timelineId = Column(CodingKeys.timelineId)
2020-11-13 00:13:09 +00:00
static let id = Column(CodingKeys.id)
2020-10-27 03:01:12 +00:00
}
}