metatext/DB/Sources/DB/Content/AccountPinnedStatusJoin.swift
Justin Mazzocchi 2020c69120
Cleanup
2020-11-12 16:13:09 -08:00

22 lines
525 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
import Mastodon
struct AccountPinnedStatusJoin: ContentDatabaseRecord {
let accountId: Account.Id
let statusId: Status.Id
let index: Int
}
extension AccountPinnedStatusJoin {
enum Columns {
static let accountId = Column(CodingKeys.accountId)
static let statusId = Column(CodingKeys.statusId)
static let index = Column(CodingKeys.index)
}
static let status = belongsTo(StatusRecord.self)
}