2017-07-03 15:04:31 -07:00
|
|
|
//
|
|
|
|
// Keys.swift
|
2019-07-08 22:20:57 -07:00
|
|
|
// NetNewsWire
|
2017-07-03 15:04:31 -07:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 7/3/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2017-09-06 13:33:04 -07:00
|
|
|
// MARK: - Database structure
|
|
|
|
|
|
|
|
struct DatabaseTableName {
|
2017-07-03 15:04:31 -07:00
|
|
|
|
|
|
|
static let articles = "articles"
|
2017-08-03 21:10:01 -07:00
|
|
|
static let authors = "authors"
|
2017-08-20 17:46:15 -07:00
|
|
|
static let authorsLookup = "authorsLookup"
|
2017-07-03 15:04:31 -07:00
|
|
|
static let statuses = "statuses"
|
|
|
|
}
|
|
|
|
|
2017-09-06 13:33:04 -07:00
|
|
|
struct DatabaseKey {
|
2017-07-03 15:04:31 -07:00
|
|
|
|
2017-07-07 17:49:16 -07:00
|
|
|
// Shared
|
2017-07-03 15:04:31 -07:00
|
|
|
static let articleID = "articleID"
|
2017-07-07 17:49:16 -07:00
|
|
|
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"
|
2019-02-24 15:34:10 -08:00
|
|
|
static let searchRowID = "searchRowID"
|
2017-07-03 15:04:31 -07:00
|
|
|
|
|
|
|
// ArticleStatus
|
|
|
|
static let read = "read"
|
|
|
|
static let starred = "starred"
|
|
|
|
static let userDeleted = "userDeleted"
|
|
|
|
static let dateArrived = "dateArrived"
|
2017-07-10 20:54:00 -07:00
|
|
|
|
|
|
|
// Tag
|
|
|
|
static let tagName = "tagName"
|
2017-07-12 13:25:10 -07:00
|
|
|
|
|
|
|
// Author
|
2017-08-06 12:37:47 -07:00
|
|
|
static let authorID = "authorID"
|
2017-07-12 13:25:10 -07:00
|
|
|
static let name = "name"
|
|
|
|
static let avatarURL = "avatarURL"
|
|
|
|
static let emailAddress = "emailAddress"
|
2019-02-24 15:34:10 -08:00
|
|
|
|
|
|
|
// Search
|
|
|
|
static let body = "body"
|
|
|
|
static let rowID = "rowid"
|
2017-07-03 15:04:31 -07:00
|
|
|
}
|
|
|
|
|
2017-09-06 13:33:04 -07:00
|
|
|
struct RelationshipName {
|
2017-08-20 15:56:58 -07:00
|
|
|
|
|
|
|
static let authors = "authors"
|
|
|
|
}
|