2017-07-04 00:04:31 +02:00
|
|
|
//
|
|
|
|
// Keys.swift
|
|
|
|
// Database
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 7/3/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
public struct DatabaseTableName {
|
|
|
|
|
|
|
|
static let articles = "articles"
|
|
|
|
static let statuses = "statuses"
|
2017-07-11 05:54:00 +02:00
|
|
|
static let tags = "tags"
|
2017-07-04 00:04:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public struct DatabaseKey {
|
|
|
|
|
2017-07-08 02:49:16 +02:00
|
|
|
// Shared
|
2017-07-04 00:04:31 +02:00
|
|
|
static let articleID = "articleID"
|
|
|
|
static let accountInfo = "accountInfo"
|
2017-07-08 02:49:16 +02: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"
|
|
|
|
static let tags = "tags"
|
|
|
|
static let attachments = "attachments"
|
2017-07-04 00:04:31 +02:00
|
|
|
|
|
|
|
// ArticleStatus
|
|
|
|
static let read = "read"
|
|
|
|
static let starred = "starred"
|
|
|
|
static let userDeleted = "userDeleted"
|
|
|
|
static let dateArrived = "dateArrived"
|
2017-07-11 05:54:00 +02:00
|
|
|
|
2017-07-08 02:49:16 +02:00
|
|
|
// Attachment
|
|
|
|
static let mimeType = "mimeType"
|
|
|
|
static let sizeInBytes = "sizeInBytes"
|
|
|
|
static let durationInSeconds = "durationInSeconds"
|
2017-07-11 05:54:00 +02:00
|
|
|
|
|
|
|
// Tag
|
|
|
|
static let tagName = "tagName"
|
2017-07-04 00:04:31 +02:00
|
|
|
}
|
|
|
|
|