metatext-app-ios-iphone-ipad/DB/Sources/DB/Content/AccountPinnedStatusJoin.swift

22 lines
619 B
Swift
Raw Normal View History

2020-09-18 02:16:41 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
2020-10-06 00:50:05 +02:00
import Mastodon
2020-09-18 02:16:41 +02:00
struct AccountPinnedStatusJoin: Codable, FetchableRecord, PersistableRecord {
2020-10-06 00:50:05 +02:00
let accountId: Account.Id
let statusId: Status.Id
2020-09-18 02:16:41 +02:00
let index: Int
2020-09-29 08:06:25 +02:00
}
extension AccountPinnedStatusJoin {
enum Columns {
static let accountId = Column(AccountPinnedStatusJoin.CodingKeys.accountId)
static let statusId = Column(AccountPinnedStatusJoin.CodingKeys.statusId)
static let index = Column(AccountPinnedStatusJoin.CodingKeys.index)
}
2020-10-03 11:19:05 +02:00
static let status = belongsTo(StatusRecord.self)
2020-09-18 02:16:41 +02:00
}