mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-03 05:59:24 +00:00
21 lines
635 B
Swift
21 lines
635 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import GRDB
|
|
|
|
struct AccountPinnedStatusJoin: Codable, FetchableRecord, PersistableRecord {
|
|
let accountId: String
|
|
let statusId: String
|
|
let index: Int
|
|
|
|
static let status = belongsTo(StatusRecord.self, using: ForeignKey([Columns.statusId]))
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|