{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/1673","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/1673/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/1673/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/1673/events","html_url":"https://github.com/typeorm/typeorm/issues/1673","id":300921656,"number":1673,"title":"How to wirte 'decimal(5,2)' in entity?","user":{"login":"kaimiyang","id":25541839,"avatar_url":"https://avatars3.githubusercontent.com/u/25541839?v=4","gravatar_id":"","url":"https://api.github.com/users/kaimiyang","html_url":"https://github.com/kaimiyang","followers_url":"https://api.github.com/users/kaimiyang/followers","following_url":"https://api.github.com/users/kaimiyang/following{/other_user}","gists_url":"https://api.github.com/users/kaimiyang/gists{/gist_id}","starred_url":"https://api.github.com/users/kaimiyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaimiyang/subscriptions","organizations_url":"https://api.github.com/users/kaimiyang/orgs","repos_url":"https://api.github.com/users/kaimiyang/repos","events_url":"https://api.github.com/users/kaimiyang/events{/privacy}","received_events_url":"https://api.github.com/users/kaimiyang/received_events","type":"User","site_admin":false},"labels":[{"id":333605716,"url":"https://api.github.com/repos/typeorm/typeorm/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"AlexMesser","id":17142628,"avatar_url":"https://avatars3.githubusercontent.com/u/17142628?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMesser","html_url":"https://github.com/AlexMesser","followers_url":"https://api.github.com/users/AlexMesser/followers","following_url":"https://api.github.com/users/AlexMesser/following{/other_user}","gists_url":"https://api.github.com/users/AlexMesser/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMesser/subscriptions","organizations_url":"https://api.github.com/users/AlexMesser/orgs","repos_url":"https://api.github.com/users/AlexMesser/repos","events_url":"https://api.github.com/users/AlexMesser/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMesser/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexMesser","id":17142628,"avatar_url":"https://avatars3.githubusercontent.com/u/17142628?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexMesser","html_url":"https://github.com/AlexMesser","followers_url":"https://api.github.com/users/AlexMesser/followers","following_url":"https://api.github.com/users/AlexMesser/following{/other_user}","gists_url":"https://api.github.com/users/AlexMesser/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMesser/subscriptions","organizations_url":"https://api.github.com/users/AlexMesser/orgs","repos_url":"https://api.github.com/users/AlexMesser/repos","events_url":"https://api.github.com/users/AlexMesser/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMesser/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/typeorm/typeorm/milestones/1","html_url":"https://github.com/typeorm/typeorm/milestone/1","labels_url":"https://api.github.com/repos/typeorm/typeorm/milestones/1/labels","id":2843035,"number":1,"title":"0.2.0","description":"","creator":{"login":"pleerock","id":1753397,"avatar_url":"https://avatars3.githubusercontent.com/u/1753397?v=4","gravatar_id":"","url":"https://api.github.com/users/pleerock","html_url":"https://github.com/pleerock","followers_url":"https://api.github.com/users/pleerock/followers","following_url":"https://api.github.com/users/pleerock/following{/other_user}","gists_url":"https://api.github.com/users/pleerock/gists{/gist_id}","starred_url":"https://api.github.com/users/pleerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleerock/subscriptions","organizations_url":"https://api.github.com/users/pleerock/orgs","repos_url":"https://api.github.com/users/pleerock/repos","events_url":"https://api.github.com/users/pleerock/events{/privacy}","received_events_url":"https://api.github.com/users/pleerock/received_events","type":"User","site_admin":false},"open_issues":76,"closed_issues":49,"state":"open","created_at":"2017-10-17T12:17:45Z","updated_at":"2018-02-28T07:45:07Z","due_on":"2018-04-01T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-02-28T07:42:24Z","updated_at":"2018-02-28T08:17:50Z","closed_at":null,"author_association":"NONE","body":"**Issue type:**\r\n\r\n[ ] question\r\n\r\n**Database system/driver:**\r\n\r\n[ ] `mysql` / `mariadb`\r\n\r\n**TypeORM version:**\r\n\r\n[ ] `latest`\r\n\r\n**How to wirte 'decimal(5,2)' in entity?:**\r\n\r\nI want to set the field in the table. the field type is decimal, store like data: $123.23.\r\n\r\nIn entity, how to wirte?\r\n"},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/369156119","html_url":"https://github.com/typeorm/typeorm/issues/1673#issuecomment-369156119","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/1673","id":369156119,"user":{"login":"kaimiyang","id":25541839,"avatar_url":"https://avatars3.githubusercontent.com/u/25541839?v=4","gravatar_id":"","url":"https://api.github.com/users/kaimiyang","html_url":"https://github.com/kaimiyang","followers_url":"https://api.github.com/users/kaimiyang/followers","following_url":"https://api.github.com/users/kaimiyang/following{/other_user}","gists_url":"https://api.github.com/users/kaimiyang/gists{/gist_id}","starred_url":"https://api.github.com/users/kaimiyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaimiyang/subscriptions","organizations_url":"https://api.github.com/users/kaimiyang/orgs","repos_url":"https://api.github.com/users/kaimiyang/repos","events_url":"https://api.github.com/users/kaimiyang/events{/privacy}","received_events_url":"https://api.github.com/users/kaimiyang/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T08:17:50Z","updated_at":"2018-02-28T08:17:50Z","author_association":"NONE","body":"@AlexMesser thank you!\r\nmany times I write like this : \r\n`@Column({\r\n    type: 'decimal',\r\n    precision: 5,\r\n    scale: 2,\r\n    default: 0,\r\n  })\r\n`\r\nand then `desc tablename`, result in:\r\n`\r\ndecimal(5,2)\r\n`\r\n\r\nnow is okey!"}}
{"actor":{"display_login":"kaimiyang"}}