{"action":"created","comment":{"url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/comments/60668383","id":60668383,"diff_hunk":"@@ -0,0 +1,51 @@\n+/**\n+ * Unit.js\n+ *\n+ * @description :: TODO: You might write a short summary of how this model works and what it represents here.\n+ * @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models\n+ */\n+\n+module.exports = {\n+\n+  attributes: {\n+\n+    name:             { type: 'string', default: null, required: true },\n+    key:              { type: 'string', default: null, required: true },\n+    size:             { type: 'number', default: null, required: true },\n+    pop_cost:         { type: 'number', default: null, required: true },\n+    rank:             { type: 'string', enum: ['paragon', 'basic'] },\n+\n+    resource_1:       { type: 'string', default: null, required: true }, // minerals\n+    resource_2:       { type: 'string', default: null, required: true }, // gas\n+    resource_3:       { type: 'string', default: null, required: true }, // special?\n+\n+    hitpoints:        { type: 'float', default: null, required: true }, //, type: Float\n+    shield:           { type: 'float', default: null, required: true }, // #, type: Float\n+    armor_value:      { type: 'float', default: null, required: true },\n+\n+    g_attack:         { type: 'string', default: null, required: true },\n+    g_attack_dps:     { type: 'float', default: null, required: true }, //#, type: Float\n+    a_attack:         { type: 'string', default: null, required: true },\n+    a_attack_dps:     { type: 'float', default: null, required: true }, // #, type: Float\n+    attack_cd:        { type: 'string', default: null, required: true },\n+    attack_mod_1:     { type: 'string', default: null, required: true },\n+    attack_mod_2:     { type: 'string', default: null, required: true },\n+    ground_attack_range: { type: 'float', default: null, required: true }, // type: Float\n+    air_attack_range: { type: 'float', default: null, required: true }, // type: Float\n+\n+    max_level:        { type: 'integer', default: null, required: true }, // type: Integer\n+    sight:            { type: 'float', default: null, required: true }, // type: Float\n+    notes:            { type: 'string', default: null, required: true },\n+\n+    build_time:       { type: 'float', default: null, required: true }, // type: Float\n+\n+    game:             { model: 'Game' },","path":"api/models/Unit.js","position":42,"original_position":42,"commit_id":"0dfc22681e05cda739919d992cd33fb7c0453590","original_commit_id":"0dfc22681e05cda739919d992cd33fb7c0453590","user":{"login":"justsml","id":397632,"avatar_url":"https://avatars.githubusercontent.com/u/397632?v=3","gravatar_id":"","url":"https://api.github.com/users/justsml","html_url":"https://github.com/justsml","followers_url":"https://api.github.com/users/justsml/followers","following_url":"https://api.github.com/users/justsml/following{/other_user}","gists_url":"https://api.github.com/users/justsml/gists{/gist_id}","starred_url":"https://api.github.com/users/justsml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justsml/subscriptions","organizations_url":"https://api.github.com/users/justsml/orgs","repos_url":"https://api.github.com/users/justsml/repos","events_url":"https://api.github.com/users/justsml/events{/privacy}","received_events_url":"https://api.github.com/users/justsml/received_events","type":"User","site_admin":false},"body":"this is a 1-to-1 parent relationship (unit is the child)","created_at":"2016-04-21T22:57:03Z","updated_at":"2016-04-21T22:57:03Z","html_url":"https://github.com/rjswenson/universal-card-catalog/pull/2#discussion_r60668383","pull_request_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/comments/60668383"},"html":{"href":"https://github.com/rjswenson/universal-card-catalog/pull/2#discussion_r60668383"},"pull_request":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2","id":67431909,"html_url":"https://github.com/rjswenson/universal-card-catalog/pull/2","diff_url":"https://github.com/rjswenson/universal-card-catalog/pull/2.diff","patch_url":"https://github.com/rjswenson/universal-card-catalog/pull/2.patch","issue_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/2","number":2,"state":"closed","locked":false,"title":"added unit model","user":{"login":"justsml","id":397632,"avatar_url":"https://avatars.githubusercontent.com/u/397632?v=3","gravatar_id":"","url":"https://api.github.com/users/justsml","html_url":"https://github.com/justsml","followers_url":"https://api.github.com/users/justsml/followers","following_url":"https://api.github.com/users/justsml/following{/other_user}","gists_url":"https://api.github.com/users/justsml/gists{/gist_id}","starred_url":"https://api.github.com/users/justsml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justsml/subscriptions","organizations_url":"https://api.github.com/users/justsml/orgs","repos_url":"https://api.github.com/users/justsml/repos","events_url":"https://api.github.com/users/justsml/events{/privacy}","received_events_url":"https://api.github.com/users/justsml/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-21T22:21:37Z","updated_at":"2016-04-21T22:57:03Z","closed_at":"2016-04-21T22:54:58Z","merged_at":"2016-04-21T22:54:58Z","merge_commit_sha":"f10b64cc58d33df1a129b7358b208602e89c878c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/2/comments","statuses_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/statuses/0dfc22681e05cda739919d992cd33fb7c0453590","head":{"label":"justsml:add-unit","ref":"add-unit","sha":"0dfc22681e05cda739919d992cd33fb7c0453590","user":{"login":"justsml","id":397632,"avatar_url":"https://avatars.githubusercontent.com/u/397632?v=3","gravatar_id":"","url":"https://api.github.com/users/justsml","html_url":"https://github.com/justsml","followers_url":"https://api.github.com/users/justsml/followers","following_url":"https://api.github.com/users/justsml/following{/other_user}","gists_url":"https://api.github.com/users/justsml/gists{/gist_id}","starred_url":"https://api.github.com/users/justsml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justsml/subscriptions","organizations_url":"https://api.github.com/users/justsml/orgs","repos_url":"https://api.github.com/users/justsml/repos","events_url":"https://api.github.com/users/justsml/events{/privacy}","received_events_url":"https://api.github.com/users/justsml/received_events","type":"User","site_admin":false},"repo":{"id":56808156,"name":"universal-card-catalog","full_name":"justsml/universal-card-catalog","owner":{"login":"justsml","id":397632,"avatar_url":"https://avatars.githubusercontent.com/u/397632?v=3","gravatar_id":"","url":"https://api.github.com/users/justsml","html_url":"https://github.com/justsml","followers_url":"https://api.github.com/users/justsml/followers","following_url":"https://api.github.com/users/justsml/following{/other_user}","gists_url":"https://api.github.com/users/justsml/gists{/gist_id}","starred_url":"https://api.github.com/users/justsml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justsml/subscriptions","organizations_url":"https://api.github.com/users/justsml/orgs","repos_url":"https://api.github.com/users/justsml/repos","events_url":"https://api.github.com/users/justsml/events{/privacy}","received_events_url":"https://api.github.com/users/justsml/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justsml/universal-card-catalog","description":"The lovechild of D&D Monster Manuals, RTS unit data, and an extensible CSV import","fork":true,"url":"https://api.github.com/repos/justsml/universal-card-catalog","forks_url":"https://api.github.com/repos/justsml/universal-card-catalog/forks","keys_url":"https://api.github.com/repos/justsml/universal-card-catalog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justsml/universal-card-catalog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justsml/universal-card-catalog/teams","hooks_url":"https://api.github.com/repos/justsml/universal-card-catalog/hooks","issue_events_url":"https://api.github.com/repos/justsml/universal-card-catalog/issues/events{/number}","events_url":"https://api.github.com/repos/justsml/universal-card-catalog/events","assignees_url":"https://api.github.com/repos/justsml/universal-card-catalog/assignees{/user}","branches_url":"https://api.github.com/repos/justsml/universal-card-catalog/branches{/branch}","tags_url":"https://api.github.com/repos/justsml/universal-card-catalog/tags","blobs_url":"https://api.github.com/repos/justsml/universal-card-catalog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justsml/universal-card-catalog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justsml/universal-card-catalog/git/refs{/sha}","trees_url":"https://api.github.com/repos/justsml/universal-card-catalog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justsml/universal-card-catalog/statuses/{sha}","languages_url":"https://api.github.com/repos/justsml/universal-card-catalog/languages","stargazers_url":"https://api.github.com/repos/justsml/universal-card-catalog/stargazers","contributors_url":"https://api.github.com/repos/justsml/universal-card-catalog/contributors","subscribers_url":"https://api.github.com/repos/justsml/universal-card-catalog/subscribers","subscription_url":"https://api.github.com/repos/justsml/universal-card-catalog/subscription","commits_url":"https://api.github.com/repos/justsml/universal-card-catalog/commits{/sha}","git_commits_url":"https://api.github.com/repos/justsml/universal-card-catalog/git/commits{/sha}","comments_url":"https://api.github.com/repos/justsml/universal-card-catalog/comments{/number}","issue_comment_url":"https://api.github.com/repos/justsml/universal-card-catalog/issues/comments{/number}","contents_url":"https://api.github.com/repos/justsml/universal-card-catalog/contents/{+path}","compare_url":"https://api.github.com/repos/justsml/universal-card-catalog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justsml/universal-card-catalog/merges","archive_url":"https://api.github.com/repos/justsml/universal-card-catalog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justsml/universal-card-catalog/downloads","issues_url":"https://api.github.com/repos/justsml/universal-card-catalog/issues{/number}","pulls_url":"https://api.github.com/repos/justsml/universal-card-catalog/pulls{/number}","milestones_url":"https://api.github.com/repos/justsml/universal-card-catalog/milestones{/number}","notifications_url":"https://api.github.com/repos/justsml/universal-card-catalog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justsml/universal-card-catalog/labels{/name}","releases_url":"https://api.github.com/repos/justsml/universal-card-catalog/releases{/id}","deployments_url":"https://api.github.com/repos/justsml/universal-card-catalog/deployments","created_at":"2016-04-21T21:59:11Z","updated_at":"2016-04-21T21:59:12Z","pushed_at":"2016-04-21T22:46:37Z","git_url":"git://github.com/justsml/universal-card-catalog.git","ssh_url":"git@github.com:justsml/universal-card-catalog.git","clone_url":"https://github.com/justsml/universal-card-catalog.git","svn_url":"https://github.com/justsml/universal-card-catalog","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rjswenson:master","ref":"master","sha":"3db63baf595663363f39558362903cda3745d958","user":{"login":"rjswenson","id":4707829,"avatar_url":"https://avatars.githubusercontent.com/u/4707829?v=3","gravatar_id":"","url":"https://api.github.com/users/rjswenson","html_url":"https://github.com/rjswenson","followers_url":"https://api.github.com/users/rjswenson/followers","following_url":"https://api.github.com/users/rjswenson/following{/other_user}","gists_url":"https://api.github.com/users/rjswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/rjswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjswenson/subscriptions","organizations_url":"https://api.github.com/users/rjswenson/orgs","repos_url":"https://api.github.com/users/rjswenson/repos","events_url":"https://api.github.com/users/rjswenson/events{/privacy}","received_events_url":"https://api.github.com/users/rjswenson/received_events","type":"User","site_admin":false},"repo":{"id":56806097,"name":"universal-card-catalog","full_name":"rjswenson/universal-card-catalog","owner":{"login":"rjswenson","id":4707829,"avatar_url":"https://avatars.githubusercontent.com/u/4707829?v=3","gravatar_id":"","url":"https://api.github.com/users/rjswenson","html_url":"https://github.com/rjswenson","followers_url":"https://api.github.com/users/rjswenson/followers","following_url":"https://api.github.com/users/rjswenson/following{/other_user}","gists_url":"https://api.github.com/users/rjswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/rjswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjswenson/subscriptions","organizations_url":"https://api.github.com/users/rjswenson/orgs","repos_url":"https://api.github.com/users/rjswenson/repos","events_url":"https://api.github.com/users/rjswenson/events{/privacy}","received_events_url":"https://api.github.com/users/rjswenson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rjswenson/universal-card-catalog","description":"The lovechild of D&D Monster Manuals, RTS unit data, and an extensible CSV import","fork":false,"url":"https://api.github.com/repos/rjswenson/universal-card-catalog","forks_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/forks","keys_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/teams","hooks_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/hooks","issue_events_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/events{/number}","events_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/events","assignees_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/assignees{/user}","branches_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/branches{/branch}","tags_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/tags","blobs_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/git/refs{/sha}","trees_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/statuses/{sha}","languages_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/languages","stargazers_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/stargazers","contributors_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/contributors","subscribers_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/subscribers","subscription_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/subscription","commits_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/commits{/sha}","git_commits_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/git/commits{/sha}","comments_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/comments{/number}","issue_comment_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/comments{/number}","contents_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/contents/{+path}","compare_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/merges","archive_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/downloads","issues_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues{/number}","pulls_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls{/number}","milestones_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/milestones{/number}","notifications_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/labels{/name}","releases_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/releases{/id}","deployments_url":"https://api.github.com/repos/rjswenson/universal-card-catalog/deployments","created_at":"2016-04-21T21:15:01Z","updated_at":"2016-04-21T21:17:06Z","pushed_at":"2016-04-21T22:54:58Z","git_url":"git://github.com/rjswenson/universal-card-catalog.git","ssh_url":"git@github.com:rjswenson/universal-card-catalog.git","clone_url":"https://github.com/rjswenson/universal-card-catalog.git","svn_url":"https://github.com/rjswenson/universal-card-catalog","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2"},"html":{"href":"https://github.com/rjswenson/universal-card-catalog/pull/2"},"issue":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/2"},"comments":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rjswenson/universal-card-catalog/statuses/0dfc22681e05cda739919d992cd33fb7c0453590"}}}}