 // MARK: - Model
 
 public final class BlogPost: Codable {    
-
-//    public struct Properties {
-//        public static let blogPostID = "id"
-//        public static let title = "title"
-//        public static let contents = "contents"
-//        public static let slugUrl = "slug_url"
-//        public static let published = "published"
-//        public static let created = "created"
-//        public static let lastEdited = "last_edited"
-//        public static let authorName = "author_name"
-//        public static let authorUsername = "author_username"
-//        public static let createdDate = "created_date"
-//        public static let createdDateIso8601 = "created_date_iso8601"
-//        public static let lastEditedDate = "last_edited_date"
-//        public static let lastEditedDateIso8601 = "last_edited_date_iso8601"
-//        public static let shortSnippet = "short_snippet"
-//        public static let longSnippet = "long_snippet"
-//        public static let tags = "tags"
-//    }
-
-//    static var postsPerPage = 10
-
-    // TODO convert to UUID?
-//    public typealias ID = Int
-//    public static var idKey: IDKey {
-//        return \BlogPost.blogID
-//    }
-//    public typealias Database = DatabaseType
 
     public var blogID: Int?
     public var title: String

//        return newSlugUrl
//    }
}

// MARK: - Relations

//extension BlogPost {
//    var postAuthor: Parent<BlogPost, BlogUser<DatabaseType>> {
//        return parent(\.author)
//    }
//
//    var tags: Siblings<BlogPost, BlogTag<DatabaseType>, BlogPostTagPivot<DatabaseType>> {
//        return siblings()
//    }
//}

//// MARK: - Pagination
//
//extension BlogPost: Paginatable {
//    public static var defaultPageSorts: [Sort] {
//        return []
//    }
//
//    public static var defaultPageSize: Int {
//        return postsPerPage
//    }
//}
//
//extension Page {
//    public func makeNode(for uri: URI, in context: Context?) throws -> Node {
//        var node = Node([:], in: context)
//        try node.set("data", data.makeNode(in: context))
//
//        var paginationNode = Node([:], in: context)
//        try paginationNode.set("total", total)
//        try paginationNode.set("current_page", number)
//        try paginationNode.set("per_page", size)
//
//        var pages = total / size
//        if total % size != 0 {
//            pages += 1
//        }
//
//        try paginationNode.set("total_pages", pages)
//        if number < pages {
//            try paginationNode.set("next_page", "?page=\(number + 1)")
//        }
//        if number > 1 {
//            try paginationNode.set("previous_page", "?page=\(number - 1)")
//        }
//
//        try node.set("pagination", paginationNode)
//        return node
//    }
//}


    }
}

// MARK: - BlogPost Utilities

extension BlogPost {
