NetNewsWire/Frameworks/ArticlesDatabase/Constants.swift

66 lines
1.4 KiB
Swift

//
// Keys.swift
// NetNewsWire
//
// Created by Brent Simmons on 7/3/17.
// Copyright © 2017 Ranchero Software. All rights reserved.
//
import Foundation
// MARK: - Database structure
struct DatabaseTableName {
static let articles = "articles"
static let authors = "authors"
static let authorsLookup = "authorsLookup"
static let statuses = "statuses"
}
struct DatabaseKey {
// Shared
static let articleID = "articleID"
static let url = "url"
static let title = "title"
// Article
static let feedID = "feedID"
static let uniqueID = "uniqueID"
static let contentHTML = "contentHTML"
static let contentText = "contentText"
static let externalURL = "externalURL"
static let summary = "summary"
static let imageURL = "imageURL"
static let bannerImageURL = "bannerImageURL"
static let datePublished = "datePublished"
static let dateModified = "dateModified"
static let authors = "authors"
static let searchRowID = "searchRowID"
// ArticleStatus
static let read = "read"
static let starred = "starred"
static let userDeleted = "userDeleted"
static let dateArrived = "dateArrived"
// Tag
static let tagName = "tagName"
// Author
static let authorID = "authorID"
static let name = "name"
static let avatarURL = "avatarURL"
static let emailAddress = "emailAddress"
// Search
static let body = "body"
static let rowID = "rowid"
}
struct RelationshipName {
static let authors = "authors"
}