{"action":"created","comment":{"url":"https://api.github.com/repos/MastodonC/witan.app/pulls/comments/41735045","id":41735045,"diff_hunk":"@@ -0,0 +1,77 @@\n+(ns witan.app.model\n+  (:require [qbits.hayt :as hayt]\n+            [qbits.alia.uuid :as uuid]\n+            [qbits.alia.codec :as codec]\n+            [clj-time.core     :as t]\n+            [clj-time.format   :as tf]\n+            [clj-time.coerce   :as tc]\n+            [witan.app.config :as c]\n+            [witan.app.util :as util]\n+            [witan.app.schema :as ws]\n+            [schema.core :as s])\n+  (:use [liberator.core :only [defresource]]))\n+\n+(def model-table :models)\n+(def model-names-table :model_names)","path":"src/witan/app/model.clj","position":15,"original_position":15,"commit_id":"6e298aaa11a225829721dd8c681d6002324cc9d0","original_commit_id":"6e298aaa11a225829721dd8c681d6002324cc9d0","user":{"login":"elisehuard","id":8934,"avatar_url":"https://avatars.githubusercontent.com/u/8934?v=3","gravatar_id":"","url":"https://api.github.com/users/elisehuard","html_url":"https://github.com/elisehuard","followers_url":"https://api.github.com/users/elisehuard/followers","following_url":"https://api.github.com/users/elisehuard/following{/other_user}","gists_url":"https://api.github.com/users/elisehuard/gists{/gist_id}","starred_url":"https://api.github.com/users/elisehuard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elisehuard/subscriptions","organizations_url":"https://api.github.com/users/elisehuard/orgs","repos_url":"https://api.github.com/users/elisehuard/repos","events_url":"https://api.github.com/users/elisehuard/events{/privacy}","received_events_url":"https://api.github.com/users/elisehuard/received_events","type":"User","site_admin":false},"body":"since we're working with cassandra entities directly in the hayt queries (column names), does it make sense to refactor out the name of the table?","created_at":"2015-10-12T08:45:19Z","updated_at":"2015-10-12T08:45:19Z","html_url":"https://github.com/MastodonC/witan.app/pull/25#discussion_r41735045","pull_request_url":"https://api.github.com/repos/MastodonC/witan.app/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/comments/41735045"},"html":{"href":"https://github.com/MastodonC/witan.app/pull/25#discussion_r41735045"},"pull_request":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/MastodonC/witan.app/pulls/25","id":47394410,"html_url":"https://github.com/MastodonC/witan.app/pull/25","diff_url":"https://github.com/MastodonC/witan.app/pull/25.diff","patch_url":"https://github.com/MastodonC/witan.app/pull/25.patch","issue_url":"https://api.github.com/repos/MastodonC/witan.app/issues/25","number":25,"state":"open","locked":false,"title":"WIP Feature/models","user":{"login":"acron0","id":812199,"avatar_url":"https://avatars.githubusercontent.com/u/812199?v=3","gravatar_id":"","url":"https://api.github.com/users/acron0","html_url":"https://github.com/acron0","followers_url":"https://api.github.com/users/acron0/followers","following_url":"https://api.github.com/users/acron0/following{/other_user}","gists_url":"https://api.github.com/users/acron0/gists{/gist_id}","starred_url":"https://api.github.com/users/acron0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acron0/subscriptions","organizations_url":"https://api.github.com/users/acron0/orgs","repos_url":"https://api.github.com/users/acron0/repos","events_url":"https://api.github.com/users/acron0/events{/privacy}","received_events_url":"https://api.github.com/users/acron0/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-12T08:17:31Z","updated_at":"2015-10-12T08:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2640b487e352f1e802de8e32b19e10e36e707f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MastodonC/witan.app/pulls/25/commits","review_comments_url":"https://api.github.com/repos/MastodonC/witan.app/pulls/25/comments","review_comment_url":"https://api.github.com/repos/MastodonC/witan.app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MastodonC/witan.app/issues/25/comments","statuses_url":"https://api.github.com/repos/MastodonC/witan.app/statuses/6e298aaa11a225829721dd8c681d6002324cc9d0","head":{"label":"MastodonC:feature/models","ref":"feature/models","sha":"6e298aaa11a225829721dd8c681d6002324cc9d0","user":{"login":"MastodonC","id":2911834,"avatar_url":"https://avatars.githubusercontent.com/u/2911834?v=3","gravatar_id":"","url":"https://api.github.com/users/MastodonC","html_url":"https://github.com/MastodonC","followers_url":"https://api.github.com/users/MastodonC/followers","following_url":"https://api.github.com/users/MastodonC/following{/other_user}","gists_url":"https://api.github.com/users/MastodonC/gists{/gist_id}","starred_url":"https://api.github.com/users/MastodonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastodonC/subscriptions","organizations_url":"https://api.github.com/users/MastodonC/orgs","repos_url":"https://api.github.com/users/MastodonC/repos","events_url":"https://api.github.com/users/MastodonC/events{/privacy}","received_events_url":"https://api.github.com/users/MastodonC/received_events","type":"Organization","site_admin":false},"repo":{"id":41428009,"name":"witan.app","full_name":"MastodonC/witan.app","owner":{"login":"MastodonC","id":2911834,"avatar_url":"https://avatars.githubusercontent.com/u/2911834?v=3","gravatar_id":"","url":"https://api.github.com/users/MastodonC","html_url":"https://github.com/MastodonC","followers_url":"https://api.github.com/users/MastodonC/followers","following_url":"https://api.github.com/users/MastodonC/following{/other_user}","gists_url":"https://api.github.com/users/MastodonC/gists{/gist_id}","starred_url":"https://api.github.com/users/MastodonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastodonC/subscriptions","organizations_url":"https://api.github.com/users/MastodonC/orgs","repos_url":"https://api.github.com/users/MastodonC/repos","events_url":"https://api.github.com/users/MastodonC/events{/privacy}","received_events_url":"https://api.github.com/users/MastodonC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastodonC/witan.app","description":"","fork":false,"url":"https://api.github.com/repos/MastodonC/witan.app","forks_url":"https://api.github.com/repos/MastodonC/witan.app/forks","keys_url":"https://api.github.com/repos/MastodonC/witan.app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastodonC/witan.app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastodonC/witan.app/teams","hooks_url":"https://api.github.com/repos/MastodonC/witan.app/hooks","issue_events_url":"https://api.github.com/repos/MastodonC/witan.app/issues/events{/number}","events_url":"https://api.github.com/repos/MastodonC/witan.app/events","assignees_url":"https://api.github.com/repos/MastodonC/witan.app/assignees{/user}","branches_url":"https://api.github.com/repos/MastodonC/witan.app/branches{/branch}","tags_url":"https://api.github.com/repos/MastodonC/witan.app/tags","blobs_url":"https://api.github.com/repos/MastodonC/witan.app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastodonC/witan.app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastodonC/witan.app/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastodonC/witan.app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastodonC/witan.app/statuses/{sha}","languages_url":"https://api.github.com/repos/MastodonC/witan.app/languages","stargazers_url":"https://api.github.com/repos/MastodonC/witan.app/stargazers","contributors_url":"https://api.github.com/repos/MastodonC/witan.app/contributors","subscribers_url":"https://api.github.com/repos/MastodonC/witan.app/subscribers","subscription_url":"https://api.github.com/repos/MastodonC/witan.app/subscription","commits_url":"https://api.github.com/repos/MastodonC/witan.app/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastodonC/witan.app/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastodonC/witan.app/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastodonC/witan.app/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastodonC/witan.app/contents/{+path}","compare_url":"https://api.github.com/repos/MastodonC/witan.app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastodonC/witan.app/merges","archive_url":"https://api.github.com/repos/MastodonC/witan.app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastodonC/witan.app/downloads","issues_url":"https://api.github.com/repos/MastodonC/witan.app/issues{/number}","pulls_url":"https://api.github.com/repos/MastodonC/witan.app/pulls{/number}","milestones_url":"https://api.github.com/repos/MastodonC/witan.app/milestones{/number}","notifications_url":"https://api.github.com/repos/MastodonC/witan.app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastodonC/witan.app/labels{/name}","releases_url":"https://api.github.com/repos/MastodonC/witan.app/releases{/id}","created_at":"2015-08-26T13:46:04Z","updated_at":"2015-09-14T12:54:53Z","pushed_at":"2015-10-12T08:36:06Z","git_url":"git://github.com/MastodonC/witan.app.git","ssh_url":"git@github.com:MastodonC/witan.app.git","clone_url":"https://github.com/MastodonC/witan.app.git","svn_url":"https://github.com/MastodonC/witan.app","homepage":"","size":689,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"MastodonC:master","ref":"master","sha":"667e60fd6da0c1e26bdc19463fd836811e5b6214","user":{"login":"MastodonC","id":2911834,"avatar_url":"https://avatars.githubusercontent.com/u/2911834?v=3","gravatar_id":"","url":"https://api.github.com/users/MastodonC","html_url":"https://github.com/MastodonC","followers_url":"https://api.github.com/users/MastodonC/followers","following_url":"https://api.github.com/users/MastodonC/following{/other_user}","gists_url":"https://api.github.com/users/MastodonC/gists{/gist_id}","starred_url":"https://api.github.com/users/MastodonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastodonC/subscriptions","organizations_url":"https://api.github.com/users/MastodonC/orgs","repos_url":"https://api.github.com/users/MastodonC/repos","events_url":"https://api.github.com/users/MastodonC/events{/privacy}","received_events_url":"https://api.github.com/users/MastodonC/received_events","type":"Organization","site_admin":false},"repo":{"id":41428009,"name":"witan.app","full_name":"MastodonC/witan.app","owner":{"login":"MastodonC","id":2911834,"avatar_url":"https://avatars.githubusercontent.com/u/2911834?v=3","gravatar_id":"","url":"https://api.github.com/users/MastodonC","html_url":"https://github.com/MastodonC","followers_url":"https://api.github.com/users/MastodonC/followers","following_url":"https://api.github.com/users/MastodonC/following{/other_user}","gists_url":"https://api.github.com/users/MastodonC/gists{/gist_id}","starred_url":"https://api.github.com/users/MastodonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastodonC/subscriptions","organizations_url":"https://api.github.com/users/MastodonC/orgs","repos_url":"https://api.github.com/users/MastodonC/repos","events_url":"https://api.github.com/users/MastodonC/events{/privacy}","received_events_url":"https://api.github.com/users/MastodonC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastodonC/witan.app","description":"","fork":false,"url":"https://api.github.com/repos/MastodonC/witan.app","forks_url":"https://api.github.com/repos/MastodonC/witan.app/forks","keys_url":"https://api.github.com/repos/MastodonC/witan.app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastodonC/witan.app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastodonC/witan.app/teams","hooks_url":"https://api.github.com/repos/MastodonC/witan.app/hooks","issue_events_url":"https://api.github.com/repos/MastodonC/witan.app/issues/events{/number}","events_url":"https://api.github.com/repos/MastodonC/witan.app/events","assignees_url":"https://api.github.com/repos/MastodonC/witan.app/assignees{/user}","branches_url":"https://api.github.com/repos/MastodonC/witan.app/branches{/branch}","tags_url":"https://api.github.com/repos/MastodonC/witan.app/tags","blobs_url":"https://api.github.com/repos/MastodonC/witan.app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastodonC/witan.app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastodonC/witan.app/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastodonC/witan.app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastodonC/witan.app/statuses/{sha}","languages_url":"https://api.github.com/repos/MastodonC/witan.app/languages","stargazers_url":"https://api.github.com/repos/MastodonC/witan.app/stargazers","contributors_url":"https://api.github.com/repos/MastodonC/witan.app/contributors","subscribers_url":"https://api.github.com/repos/MastodonC/witan.app/subscribers","subscription_url":"https://api.github.com/repos/MastodonC/witan.app/subscription","commits_url":"https://api.github.com/repos/MastodonC/witan.app/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastodonC/witan.app/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastodonC/witan.app/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastodonC/witan.app/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastodonC/witan.app/contents/{+path}","compare_url":"https://api.github.com/repos/MastodonC/witan.app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastodonC/witan.app/merges","archive_url":"https://api.github.com/repos/MastodonC/witan.app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastodonC/witan.app/downloads","issues_url":"https://api.github.com/repos/MastodonC/witan.app/issues{/number}","pulls_url":"https://api.github.com/repos/MastodonC/witan.app/pulls{/number}","milestones_url":"https://api.github.com/repos/MastodonC/witan.app/milestones{/number}","notifications_url":"https://api.github.com/repos/MastodonC/witan.app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastodonC/witan.app/labels{/name}","releases_url":"https://api.github.com/repos/MastodonC/witan.app/releases{/id}","created_at":"2015-08-26T13:46:04Z","updated_at":"2015-09-14T12:54:53Z","pushed_at":"2015-10-12T08:36:06Z","git_url":"git://github.com/MastodonC/witan.app.git","ssh_url":"git@github.com:MastodonC/witan.app.git","clone_url":"https://github.com/MastodonC/witan.app.git","svn_url":"https://github.com/MastodonC/witan.app","homepage":"","size":689,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/25"},"html":{"href":"https://github.com/MastodonC/witan.app/pull/25"},"issue":{"href":"https://api.github.com/repos/MastodonC/witan.app/issues/25"},"comments":{"href":"https://api.github.com/repos/MastodonC/witan.app/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MastodonC/witan.app/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/MastodonC/witan.app/statuses/6e298aaa11a225829721dd8c681d6002324cc9d0"}}}}