{"action":"created","issue":{"url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/130","repository_url":"https://api.github.com/repos/elasticquent/Elasticquent","labels_url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/130/comments","events_url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/130/events","html_url":"https://github.com/elasticquent/Elasticquent/issues/130","id":195795818,"number":130,"title":"Several indexes for one Eloquent Model","user":{"login":"Pashaster12","id":18751246,"avatar_url":"https://avatars.githubusercontent.com/u/18751246?v=3","gravatar_id":"","url":"https://api.github.com/users/Pashaster12","html_url":"https://github.com/Pashaster12","followers_url":"https://api.github.com/users/Pashaster12/followers","following_url":"https://api.github.com/users/Pashaster12/following{/other_user}","gists_url":"https://api.github.com/users/Pashaster12/gists{/gist_id}","starred_url":"https://api.github.com/users/Pashaster12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pashaster12/subscriptions","organizations_url":"https://api.github.com/users/Pashaster12/orgs","repos_url":"https://api.github.com/users/Pashaster12/repos","events_url":"https://api.github.com/users/Pashaster12/events{/privacy}","received_events_url":"https://api.github.com/users/Pashaster12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-15T12:40:28Z","updated_at":"2016-12-22T03:09:18Z","closed_at":null,"body":"Is it possible to make two and many indexes for the one model? For example, I have the DB's table called 'users' where I store information about users with different roles (role_id). And I want to create different indexes for each user role (teachers, students, etc.). But the problem is I have one Laravel Eloquent Model for the table 'users'. What the best way for solution this problem? Make one index with unions different roles or make several indexes for each users' category? Thanks for reply."},"comment":{"url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/comments/268707570","html_url":"https://github.com/elasticquent/Elasticquent/issues/130#issuecomment-268707570","issue_url":"https://api.github.com/repos/elasticquent/Elasticquent/issues/130","id":268707570,"user":{"login":"thaoha","id":5896457,"avatar_url":"https://avatars.githubusercontent.com/u/5896457?v=3","gravatar_id":"","url":"https://api.github.com/users/thaoha","html_url":"https://github.com/thaoha","followers_url":"https://api.github.com/users/thaoha/followers","following_url":"https://api.github.com/users/thaoha/following{/other_user}","gists_url":"https://api.github.com/users/thaoha/gists{/gist_id}","starred_url":"https://api.github.com/users/thaoha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaoha/subscriptions","organizations_url":"https://api.github.com/users/thaoha/orgs","repos_url":"https://api.github.com/users/thaoha/repos","events_url":"https://api.github.com/users/thaoha/events{/privacy}","received_events_url":"https://api.github.com/users/thaoha/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T03:09:18Z","updated_at":"2016-12-22T03:09:18Z","body":"Yeah, but personally I think you should create model for each type because it make your structure more clearly and you can have few logic for each type as you want."}}
{"actor":{"display_login":"thaoha"}}