{"action":"opened","issue":{"url":"https://api.github.com/repos/sapphireworks/website-generator/issues/51","labels_url":"https://api.github.com/repos/sapphireworks/website-generator/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/sapphireworks/website-generator/issues/51/comments","events_url":"https://api.github.com/repos/sapphireworks/website-generator/issues/51/events","html_url":"https://github.com/sapphireworks/website-generator/issues/51","id":66440503,"number":51,"title":"ERD Discussion","user":{"login":"mohamed-hussein-1","id":10837068,"avatar_url":"https://avatars.githubusercontent.com/u/10837068?v=3","gravatar_id":"","url":"https://api.github.com/users/mohamed-hussein-1","html_url":"https://github.com/mohamed-hussein-1","followers_url":"https://api.github.com/users/mohamed-hussein-1/followers","following_url":"https://api.github.com/users/mohamed-hussein-1/following{/other_user}","gists_url":"https://api.github.com/users/mohamed-hussein-1/gists{/gist_id}","starred_url":"https://api.github.com/users/mohamed-hussein-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohamed-hussein-1/subscriptions","organizations_url":"https://api.github.com/users/mohamed-hussein-1/orgs","repos_url":"https://api.github.com/users/mohamed-hussein-1/repos","events_url":"https://api.github.com/users/mohamed-hussein-1/events{/privacy}","received_events_url":"https://api.github.com/users/mohamed-hussein-1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kadyEG","id":10640699,"avatar_url":"https://avatars.githubusercontent.com/u/10640699?v=3","gravatar_id":"","url":"https://api.github.com/users/kadyEG","html_url":"https://github.com/kadyEG","followers_url":"https://api.github.com/users/kadyEG/followers","following_url":"https://api.github.com/users/kadyEG/following{/other_user}","gists_url":"https://api.github.com/users/kadyEG/gists{/gist_id}","starred_url":"https://api.github.com/users/kadyEG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadyEG/subscriptions","organizations_url":"https://api.github.com/users/kadyEG/orgs","repos_url":"https://api.github.com/users/kadyEG/repos","events_url":"https://api.github.com/users/kadyEG/events{/privacy}","received_events_url":"https://api.github.com/users/kadyEG/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sapphireworks/website-generator/milestones/2","html_url":"https://github.com/sapphireworks/website-generator/milestones/Sprint-1","labels_url":"https://api.github.com/repos/sapphireworks/website-generator/milestones/2/labels","id":1047774,"number":2,"title":"Sprint-1","description":"Sprint-1\r\n\r\nCool !","creator":{"login":"kadyEG","id":10640699,"avatar_url":"https://avatars.githubusercontent.com/u/10640699?v=3","gravatar_id":"","url":"https://api.github.com/users/kadyEG","html_url":"https://github.com/kadyEG","followers_url":"https://api.github.com/users/kadyEG/followers","following_url":"https://api.github.com/users/kadyEG/following{/other_user}","gists_url":"https://api.github.com/users/kadyEG/gists{/gist_id}","starred_url":"https://api.github.com/users/kadyEG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadyEG/subscriptions","organizations_url":"https://api.github.com/users/kadyEG/orgs","repos_url":"https://api.github.com/users/kadyEG/repos","events_url":"https://api.github.com/users/kadyEG/events{/privacy}","received_events_url":"https://api.github.com/users/kadyEG/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2015-03-31T21:34:25Z","updated_at":"2015-04-05T13:52:58Z","due_on":"2015-04-05T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-04-05T13:52:58Z","updated_at":"2015-04-05T13:52:58Z","closed_at":null,"body":"## Database Look ##\r\n\r\n* every template have an html file inside the project directory\r\n\r\n* the html is built using two parts static components and dynamic  ones   (customization)\r\n\r\n* static components aren't found inside the database , only inside the html file\r\n\r\n* dynamic components exist inside database as class names that you can add to html file and apply the customize desired\r\n\r\n* dynamic components exist inside the html wrapped in div or proper element\r\n\r\n* another option is to wrap them inside ruby helper methods <escape this point if you can't understand , even me can't understand what i'm saying here>\r\n\r\n* for customization there exist something called options which are categories for customization such as fonts , headers .. etc\r\n\r\n* every customization belongs to an option (category) and a template\r\n\r\n## basic schema < need discussion > ##\r\n\r\n```sql\r\ntemplate(id,name,thumbnail);\r\ncategory(id,name);\r\ncomponents(id,className,componentName,template_id,category_id);\r\n```\r\n\r\n@Amahmoud1994 @Abkreno "}}