mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-03 14:09:25 +00:00
22 lines
531 B
Swift
22 lines
531 B
Swift
// Copyright © 2021 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import GRDB
|
|
import Mastodon
|
|
|
|
struct AccountListJoin: ContentDatabaseRecord {
|
|
let accountListId: AccountList.Id
|
|
let accountId: Account.Id
|
|
let order: Int
|
|
|
|
static let account = belongsTo(AccountRecord.self)
|
|
}
|
|
|
|
extension AccountListJoin {
|
|
enum Columns {
|
|
static let accountListId = Column(CodingKeys.accountListId)
|
|
static let accountId = Column(CodingKeys.accountId)
|
|
static let order = Column(CodingKeys.order)
|
|
}
|
|
}
|