{"action":"created","comment":{"url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/comments/178446503","pull_request_review_id":108507501,"id":178446503,"diff_hunk":"@@ -6,38 +6,98 @@\n # Create your models here.\n \n \n-# Company and projects\n-class Company(models.Model):\n-    name = models.CharField(max_length=100)\n-    created = models.DateTimeField(auto_now_add=True)\n+class BuildingCompany(models.Model):\n+    instance_id = models.CharField(max_length=100, unique=True, null=True)\n+    name = models.CharField(max_length=100, unique=True)\n+    disabled = models.BooleanField(default=False)\n+    added_time = models.DateTimeField(auto_now_add=True)\n+\n+    class Meta:\n+        ordering = ('-added_time',)\n+\n+\n+class BuildingCompanyUser(models.Model):\n+    instance_id = models.CharField(max_length=100, unique=True, null=True)\n+    login_name = models.CharField(max_length=100, unique=True)\n+    building_company = models.ForeignKey(BuildingCompany, related_name='users', null=True)\n+    disabled = models.BooleanField(default=False)\n+    added_time = models.DateTimeField(auto_now_add=True)\n+\n+    class Meta:\n+        ordering = ('-added_time',)\n \n \n class Project(models.Model):\n-    name = models.CharField(max_length=20)\n-    created = models.DateTimeField(auto_now_add=True)\n-    title = models.CharField(max_length=100, blank=True, default='')\n-    code = models.TextField()\n-    company = models.ForeignKey(Company, on_delete=models.CASCADE)\n+    instance_id = models.CharField(max_length=100, unique=True, null=True)\n+    nature = models.CharField(max_length=20, null=True)\n+    num = models.CharField(max_length=100, null=True)\n+    region = models.CharField(max_length=100, null=True)\n+    address = models.CharField(max_length=256, null=True)\n+    status = models.IntegerField(null=True)\n+    create_time = models.DateTimeField(null=True)\n+    last_edit_time = models.DateTimeField(null=True)","path":"ccm/ccmapp/models.py","position":42,"original_position":42,"commit_id":"0fc0f95f510169e86498d1a6de85a0e0302dcb73","original_commit_id":"0fc0f95f510169e86498d1a6de85a0e0302dcb73","user":{"login":"jiushijiunong","id":37473257,"avatar_url":"https://avatars1.githubusercontent.com/u/37473257?v=4","gravatar_id":"","url":"https://api.github.com/users/jiushijiunong","html_url":"https://github.com/jiushijiunong","followers_url":"https://api.github.com/users/jiushijiunong/followers","following_url":"https://api.github.com/users/jiushijiunong/following{/other_user}","gists_url":"https://api.github.com/users/jiushijiunong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiushijiunong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiushijiunong/subscriptions","organizations_url":"https://api.github.com/users/jiushijiunong/orgs","repos_url":"https://api.github.com/users/jiushijiunong/repos","events_url":"https://api.github.com/users/jiushijiunong/events{/privacy}","received_events_url":"https://api.github.com/users/jiushijiunong/received_events","type":"User","site_admin":false},"body":"上面已经回答了","created_at":"2018-04-01T02:29:23Z","updated_at":"2018-04-01T02:29:23Z","html_url":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12#discussion_r178446503","pull_request_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/comments/178446503"},"html":{"href":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12#discussion_r178446503"},"pull_request":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12"}},"in_reply_to_id":178432274},"pull_request":{"url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12","id":178676686,"html_url":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12","diff_url":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12.diff","patch_url":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12.patch","issue_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/12","number":12,"state":"closed","locked":false,"title":"工程公司和工程APIs，检测网站数据抓取","user":{"login":"jiushijiunong","id":37473257,"avatar_url":"https://avatars1.githubusercontent.com/u/37473257?v=4","gravatar_id":"","url":"https://api.github.com/users/jiushijiunong","html_url":"https://github.com/jiushijiunong","followers_url":"https://api.github.com/users/jiushijiunong/followers","following_url":"https://api.github.com/users/jiushijiunong/following{/other_user}","gists_url":"https://api.github.com/users/jiushijiunong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiushijiunong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiushijiunong/subscriptions","organizations_url":"https://api.github.com/users/jiushijiunong/orgs","repos_url":"https://api.github.com/users/jiushijiunong/repos","events_url":"https://api.github.com/users/jiushijiunong/events{/privacy}","received_events_url":"https://api.github.com/users/jiushijiunong/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-31T10:33:46Z","updated_at":"2018-04-01T02:29:23Z","closed_at":"2018-03-31T10:40:17Z","merged_at":"2018-03-31T10:40:17Z","merge_commit_sha":"749d1190ab5b01ba28f85ed0457a5cb3ca99d536","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12/commits","review_comments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12/comments","review_comment_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/12/comments","statuses_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/statuses/0fc0f95f510169e86498d1a6de85a0e0302dcb73","head":{"label":"littlepiggroup:dev","ref":"dev","sha":"0fc0f95f510169e86498d1a6de85a0e0302dcb73","user":{"login":"littlepiggroup","id":8099995,"avatar_url":"https://avatars1.githubusercontent.com/u/8099995?v=4","gravatar_id":"","url":"https://api.github.com/users/littlepiggroup","html_url":"https://github.com/littlepiggroup","followers_url":"https://api.github.com/users/littlepiggroup/followers","following_url":"https://api.github.com/users/littlepiggroup/following{/other_user}","gists_url":"https://api.github.com/users/littlepiggroup/gists{/gist_id}","starred_url":"https://api.github.com/users/littlepiggroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlepiggroup/subscriptions","organizations_url":"https://api.github.com/users/littlepiggroup/orgs","repos_url":"https://api.github.com/users/littlepiggroup/repos","events_url":"https://api.github.com/users/littlepiggroup/events{/privacy}","received_events_url":"https://api.github.com/users/littlepiggroup/received_events","type":"User","site_admin":false},"repo":{"id":124984465,"name":"curing-chamber-monitor","full_name":"littlepiggroup/curing-chamber-monitor","owner":{"login":"littlepiggroup","id":8099995,"avatar_url":"https://avatars1.githubusercontent.com/u/8099995?v=4","gravatar_id":"","url":"https://api.github.com/users/littlepiggroup","html_url":"https://github.com/littlepiggroup","followers_url":"https://api.github.com/users/littlepiggroup/followers","following_url":"https://api.github.com/users/littlepiggroup/following{/other_user}","gists_url":"https://api.github.com/users/littlepiggroup/gists{/gist_id}","starred_url":"https://api.github.com/users/littlepiggroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlepiggroup/subscriptions","organizations_url":"https://api.github.com/users/littlepiggroup/orgs","repos_url":"https://api.github.com/users/littlepiggroup/repos","events_url":"https://api.github.com/users/littlepiggroup/events{/privacy}","received_events_url":"https://api.github.com/users/littlepiggroup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/littlepiggroup/curing-chamber-monitor","description":null,"fork":false,"url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor","forks_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/forks","keys_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/teams","hooks_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/hooks","issue_events_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/events","assignees_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/tags","blobs_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/languages","stargazers_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/stargazers","contributors_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/contributors","subscribers_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/subscribers","subscription_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/subscription","commits_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/merges","archive_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/downloads","issues_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/labels{/name}","releases_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/releases{/id}","deployments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/deployments","created_at":"2018-03-13T03:06:01Z","updated_at":"2018-03-31T11:47:20Z","pushed_at":"2018-03-31T11:47:18Z","git_url":"git://github.com/littlepiggroup/curing-chamber-monitor.git","ssh_url":"git@github.com:littlepiggroup/curing-chamber-monitor.git","clone_url":"https://github.com/littlepiggroup/curing-chamber-monitor.git","svn_url":"https://github.com/littlepiggroup/curing-chamber-monitor","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":0,"default_branch":"integration"}},"base":{"label":"littlepiggroup:integration","ref":"integration","sha":"9ca4cc3bdfb56907f17518040009e04f7896c8c3","user":{"login":"littlepiggroup","id":8099995,"avatar_url":"https://avatars1.githubusercontent.com/u/8099995?v=4","gravatar_id":"","url":"https://api.github.com/users/littlepiggroup","html_url":"https://github.com/littlepiggroup","followers_url":"https://api.github.com/users/littlepiggroup/followers","following_url":"https://api.github.com/users/littlepiggroup/following{/other_user}","gists_url":"https://api.github.com/users/littlepiggroup/gists{/gist_id}","starred_url":"https://api.github.com/users/littlepiggroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlepiggroup/subscriptions","organizations_url":"https://api.github.com/users/littlepiggroup/orgs","repos_url":"https://api.github.com/users/littlepiggroup/repos","events_url":"https://api.github.com/users/littlepiggroup/events{/privacy}","received_events_url":"https://api.github.com/users/littlepiggroup/received_events","type":"User","site_admin":false},"repo":{"id":124984465,"name":"curing-chamber-monitor","full_name":"littlepiggroup/curing-chamber-monitor","owner":{"login":"littlepiggroup","id":8099995,"avatar_url":"https://avatars1.githubusercontent.com/u/8099995?v=4","gravatar_id":"","url":"https://api.github.com/users/littlepiggroup","html_url":"https://github.com/littlepiggroup","followers_url":"https://api.github.com/users/littlepiggroup/followers","following_url":"https://api.github.com/users/littlepiggroup/following{/other_user}","gists_url":"https://api.github.com/users/littlepiggroup/gists{/gist_id}","starred_url":"https://api.github.com/users/littlepiggroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlepiggroup/subscriptions","organizations_url":"https://api.github.com/users/littlepiggroup/orgs","repos_url":"https://api.github.com/users/littlepiggroup/repos","events_url":"https://api.github.com/users/littlepiggroup/events{/privacy}","received_events_url":"https://api.github.com/users/littlepiggroup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/littlepiggroup/curing-chamber-monitor","description":null,"fork":false,"url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor","forks_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/forks","keys_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/teams","hooks_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/hooks","issue_events_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/events","assignees_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/tags","blobs_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/languages","stargazers_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/stargazers","contributors_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/contributors","subscribers_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/subscribers","subscription_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/subscription","commits_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/merges","archive_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/downloads","issues_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/labels{/name}","releases_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/releases{/id}","deployments_url":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/deployments","created_at":"2018-03-13T03:06:01Z","updated_at":"2018-03-31T11:47:20Z","pushed_at":"2018-03-31T11:47:18Z","git_url":"git://github.com/littlepiggroup/curing-chamber-monitor.git","ssh_url":"git@github.com:littlepiggroup/curing-chamber-monitor.git","clone_url":"https://github.com/littlepiggroup/curing-chamber-monitor.git","svn_url":"https://github.com/littlepiggroup/curing-chamber-monitor","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":0,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12"},"html":{"href":"https://github.com/littlepiggroup/curing-chamber-monitor/pull/12"},"issue":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/12"},"comments":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/littlepiggroup/curing-chamber-monitor/statuses/0fc0f95f510169e86498d1a6de85a0e0302dcb73"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jiushijiunong"}}