{"action":"created","issue":{"url":"https://api.github.com/repos/dresende/node-orm2/issues/474","labels_url":"https://api.github.com/repos/dresende/node-orm2/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/dresende/node-orm2/issues/474/comments","events_url":"https://api.github.com/repos/dresende/node-orm2/issues/474/events","html_url":"https://github.com/dresende/node-orm2/issues/474","id":29469242,"number":474,"title":"How to change the default primary_key type?","user":{"login":"balasuar","id":278048,"avatar_url":"https://avatars.githubusercontent.com/u/278048?v=3","gravatar_id":"","url":"https://api.github.com/users/balasuar","html_url":"https://github.com/balasuar","followers_url":"https://api.github.com/users/balasuar/followers","following_url":"https://api.github.com/users/balasuar/following{/other_user}","gists_url":"https://api.github.com/users/balasuar/gists{/gist_id}","starred_url":"https://api.github.com/users/balasuar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balasuar/subscriptions","organizations_url":"https://api.github.com/users/balasuar/orgs","repos_url":"https://api.github.com/users/balasuar/repos","events_url":"https://api.github.com/users/balasuar/events{/privacy}","received_events_url":"https://api.github.com/users/balasuar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dresende/node-orm2/milestones/3","html_url":"https://github.com/dresende/node-orm2/milestones/2.1.x","labels_url":"https://api.github.com/repos/dresende/node-orm2/milestones/3/labels","id":596624,"number":3,"title":"2.1.x","description":"","creator":{"login":"dxg","id":227785,"avatar_url":"https://avatars.githubusercontent.com/u/227785?v=3","gravatar_id":"","url":"https://api.github.com/users/dxg","html_url":"https://github.com/dxg","followers_url":"https://api.github.com/users/dxg/followers","following_url":"https://api.github.com/users/dxg/following{/other_user}","gists_url":"https://api.github.com/users/dxg/gists{/gist_id}","starred_url":"https://api.github.com/users/dxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxg/subscriptions","organizations_url":"https://api.github.com/users/dxg/orgs","repos_url":"https://api.github.com/users/dxg/repos","events_url":"https://api.github.com/users/dxg/events{/privacy}","received_events_url":"https://api.github.com/users/dxg/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2014-03-13T21:55:15Z","updated_at":"2014-06-10T08:55:44Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-03-14T20:50:35Z","updated_at":"2015-08-17T09:31:27Z","closed_at":null,"body":"I'd like to change the default id type to be BigInt.\r\n\r\nI think I can do this by specifying the id property in each object, but DRY."},"comment":{"url":"https://api.github.com/repos/dresende/node-orm2/issues/comments/131743115","html_url":"https://github.com/dresende/node-orm2/issues/474#issuecomment-131743115","issue_url":"https://api.github.com/repos/dresende/node-orm2/issues/474","id":131743115,"user":{"login":"louy","id":349850,"avatar_url":"https://avatars.githubusercontent.com/u/349850?v=3","gravatar_id":"","url":"https://api.github.com/users/louy","html_url":"https://github.com/louy","followers_url":"https://api.github.com/users/louy/followers","following_url":"https://api.github.com/users/louy/following{/other_user}","gists_url":"https://api.github.com/users/louy/gists{/gist_id}","starred_url":"https://api.github.com/users/louy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louy/subscriptions","organizations_url":"https://api.github.com/users/louy/orgs","repos_url":"https://api.github.com/users/louy/repos","events_url":"https://api.github.com/users/louy/events{/privacy}","received_events_url":"https://api.github.com/users/louy/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T09:31:27Z","updated_at":"2015-08-17T09:31:27Z","body":"Just found a way to do it.\r\n\r\n    orm.define('city', {\r\n      id: { \r\n        type: 'text', \r\n        required: true, \r\n        size: 100, // important or relationships won't work\r\n      },\r\n      name: String,\r\n    }, {\r\n      id: 'id', // important\r\n    });"}}