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

21 lines
596 B
Swift
Raw Normal View History

2020-09-18 02:16:41 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
struct AccountPinnedStatusJoin: Codable, FetchableRecord, PersistableRecord {
let accountId: String
let statusId: String
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
}