{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/6760","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/6760/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/6760/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/6760/events","html_url":"https://github.com/yiisoft/yii2/issues/6760","id":53428399,"number":6760,"title":"Code style & columns naming in database","user":{"login":"a-komarev","id":1849174,"avatar_url":"https://avatars.githubusercontent.com/u/1849174?v=3","gravatar_id":"","url":"https://api.github.com/users/a-komarev","html_url":"https://github.com/a-komarev","followers_url":"https://api.github.com/users/a-komarev/followers","following_url":"https://api.github.com/users/a-komarev/following{/other_user}","gists_url":"https://api.github.com/users/a-komarev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-komarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-komarev/subscriptions","organizations_url":"https://api.github.com/users/a-komarev/orgs","repos_url":"https://api.github.com/users/a-komarev/repos","events_url":"https://api.github.com/users/a-komarev/events{/privacy}","received_events_url":"https://api.github.com/users/a-komarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-05T18:45:03Z","updated_at":"2015-01-05T18:45:03Z","closed_at":null,"body":"In code style of Yii2 i found:\r\n>Property names MUST be declared in camelCase.\r\n\r\nBut most part of components & modules using in database lowercase columns names. *(I'm finding it more compatible too)*.\r\nThat means that we've got properties in ActiveRecord models like: `$this->mime_type`.\r\nHow to deal with it?\r\nIs there any naming conventions for Yii2 application's databases? I understand that they couldn't be 100% strict because a lot of applications already got their schemas design, but it will be great if recomendations will be described in wiki.\r\n\r\nPretty good [description of naming conventions](https://launchbylunch.com/posts/2014/Feb/16/sql-naming-conventions/#naming-conventions)."}}