{"action":"created","issue":{"url":"https://api.github.com/repos/robot-monkey/final-project/issues/1","labels_url":"https://api.github.com/repos/robot-monkey/final-project/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/robot-monkey/final-project/issues/1/comments","events_url":"https://api.github.com/repos/robot-monkey/final-project/issues/1/events","html_url":"https://github.com/robot-monkey/final-project/issues/1","id":59374806,"number":1,"title":"User Schema Proposal","user":{"login":"kingsykes","id":10662528,"avatar_url":"https://avatars.githubusercontent.com/u/10662528?v=3","gravatar_id":"","url":"https://api.github.com/users/kingsykes","html_url":"https://github.com/kingsykes","followers_url":"https://api.github.com/users/kingsykes/followers","following_url":"https://api.github.com/users/kingsykes/following{/other_user}","gists_url":"https://api.github.com/users/kingsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/kingsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingsykes/subscriptions","organizations_url":"https://api.github.com/users/kingsykes/orgs","repos_url":"https://api.github.com/users/kingsykes/repos","events_url":"https://api.github.com/users/kingsykes/events{/privacy}","received_events_url":"https://api.github.com/users/kingsykes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robot-monkey/final-project/labels/discussion","name":"discussion","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T03:29:52Z","updated_at":"2015-03-04T19:35:12Z","closed_at":null,"body":"Please review for any glaring mistakes, and also discuss for: \r\n- missing items (for core features)\r\n- organization (can it be rearranged more sensibly?)\r\n\r\nPlease note also that I had envisioned Store Editor to edit the web pages, but realized that should be its own module. Our features should interact with the data as follows:\r\n\r\n1. Authentication\r\n  * Verifies login-password combination\r\n  * loads the appropriate merchant document\r\n  * if user doesn't exist, offer to sign up (or try login again)\r\n\r\n2. Profile Management\r\n  * Sign up to create new user or merchant record\r\n  * **C**reate / **R**ead / **U**pdate / **D**elete user accounts and/or profile info\r\n  * Read permissions level of logged-in user (e.g. only owner can manage admins)\r\n\r\n3. Store Editor\r\n  * C.R.U.D list of stores and/or store profile info\r\n  * Read permissions level of logged-in user\r\n  * Choose store from list and link to website or catalog editor\r\n\r\n4. Website Editor\r\n  * Read permissions level of logged-in user\r\n  * C.R.U.D...\r\n    * site map\r\n    * page templates\r\n    * non-product content (e.g. \"featured products\" banners)\r\n\r\n5. Catalog Editor\r\n  * Read permissions level of logged-in user\r\n  * C.R.U.D...\r\n    * product categories/heirarchy\r\n    * product attributes\r\n    * product page content\r\n\r\n```js\r\n{\r\n  \"_merchantID\": \"482084630295\",\r\n  \"users\" : [ {\r\n    \"login_id\" : \"johndoe\",\r\n    \"password\" : \"pass1234\",\r\n    \"status\" : \"owner\",\r\n    \"profile\" : {\r\n      \"first_name\" : \"John\",\r\n      \"last_name\" : \"Doe\",\r\n      \"email\" : \"jd9999@columbia.edu\"\r\n      }\r\n    },\r\n   { \r\n    \"login_id_2\" : \"donkeykong\",\r\n    \"password\" : \"nuts4bananas\",\r\n    \"status\" : \"admin\",\r\n    \"profile\" : {\r\n      \"first_name\" : \"Donkey\",\r\n      \"last_name\" : \"Kong\",\r\n      \"email\" : \"dk@monkey.biz\"\r\n    }\r\n  } ],\r\n  \"merchant_profile\" : {\r\n    \"time_zone\" : \"UTC + 08:00\",\r\n    \"subscription\" : \"over9000\",\r\n    \"contact_info\" : {\r\n      \"first_name\" : \"John\",\r\n      \"last_name\" : \"Doe\",\r\n      \"email\" : \"jd9999@columbia.edu\",\r\n      \"address\" : {\r\n        \"line_1\" : \"12345 Broadway\",\r\n        \"line2\" : \"\",\r\n        \"line3\" : \"\",\r\n        \"city\" : \"New York\",\r\n        \"state\" : \"NY\",\r\n        \"zip\" : \"10025\",\r\n        \"country\" : \"USA\"\r\n      },\r\n      \"phone\" : \"0123456789\"\r\n    },\r\n    \"private_key\" : \"w1f6f79wsr9gl6power09fd7f6g798q4231tr\",\r\n    etc...\r\n  },\r\n  \"stores\": [ {\r\n    \"_id\" : \"9879846729879806\",\r\n    \"profile\" : {\r\n      \"name\" : \"Appz-R-Us\",\r\n      \"primary_domain\" : \"www.appz-r-us.com\",\r\n      \"NAICS_code\" : \"454111 Electronic Shopping\",\r\n      \"tax_id\" : \"12-3456789\",\r\n      \"currency\" : \"USD\"\r\n    },\r\n    \"website\" : {\r\n      \"site_map\" : \"sitemap.xml\",\r\n      \"page_templates\" : {\r\n        \"home\" : \"homepage.html\",\r\n        \"search\" : \"search.html\",\r\n        \"category\" : \"category.html\",\r\n        \"product\" : \"product.html\",\r\n        etc...\r\n    },\r\n    \"catalog\" : {\r\n      \"category_1\" {\r\n        \"name\" : \"Widgets\",\r\n        \"sub_category_1\" : {\r\n          \"name\" : \"Premium Widgets\",\r\n          \"product_a\" : {\r\n            \"SKU\" : \"W-P-SD9000\",\r\n            \"name\" : \"Super Deluxe 9000\",\r\n            \"price\" : \"9000.00\",\r\n            \"weight\" : \"9000\",\r\n            \"length\" : \"9000\",\r\n            \"width\" : \"9000\",\r\n            \"height\" : \"9000\",\r\n            \"manufacturer\" : \"ACME Widgets\",\r\n            \"description\" : \"Over 9000 Luxury!\",\r\n            \"images\" : [\r\n              \"http://link-to-cdn/mainphoto9000.jpg\",\r\n              \"http://link-to-cdn/otherphoto9000.jpg\"\r\n            ],\r\n            \"main_image\" : \"http://link-to-cdn/mainphoto9000.jpg\",\r\n            \"reviews\" : [ ... ],\r\n            etc...\r\n        }\r\n      }\r\n    }\r\n  },\r\n  { etc... } ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/robot-monkey/final-project/issues/comments/77229292","html_url":"https://github.com/robot-monkey/final-project/issues/1#issuecomment-77229292","issue_url":"https://api.github.com/repos/robot-monkey/final-project/issues/1","id":77229292,"user":{"login":"cz2246","id":7144984,"avatar_url":"https://avatars.githubusercontent.com/u/7144984?v=3","gravatar_id":"","url":"https://api.github.com/users/cz2246","html_url":"https://github.com/cz2246","followers_url":"https://api.github.com/users/cz2246/followers","following_url":"https://api.github.com/users/cz2246/following{/other_user}","gists_url":"https://api.github.com/users/cz2246/gists{/gist_id}","starred_url":"https://api.github.com/users/cz2246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cz2246/subscriptions","organizations_url":"https://api.github.com/users/cz2246/orgs","repos_url":"https://api.github.com/users/cz2246/repos","events_url":"https://api.github.com/users/cz2246/events{/privacy}","received_events_url":"https://api.github.com/users/cz2246/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T19:35:12Z","updated_at":"2015-03-04T19:35:12Z","body":"I think this is good"}}