metatext/DB/Sources/DB/Content/AccountListJoin.swift
2020-10-05 15:50:05 -07:00

22 lines
580 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
import Mastodon
struct AccountListJoin: Codable, FetchableRecord, PersistableRecord {
let accountId: Account.Id
let listId: AccountList.Id
let index: Int
static let account = belongsTo(AccountRecord.self)
}
extension AccountListJoin {
enum Columns {
static let accountId = Column(AccountListJoin.CodingKeys.accountId)
static let listId = Column(AccountListJoin.CodingKeys.listId)
static let index = Column(AccountListJoin.CodingKeys.index)
}
}