{"action":"created","issue":{"url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/360","repository_url":"https://api.github.com/repos/volatiletech/sqlboiler","labels_url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/360/comments","events_url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/360/events","html_url":"https://github.com/volatiletech/sqlboiler/issues/360","id":347652223,"node_id":"MDU6SXNzdWUzNDc2NTIyMjM=","number":360,"title":"Option to ignore field in json, toml, and yaml struct tags","user":{"login":"csos95","id":1892750,"node_id":"MDQ6VXNlcjE4OTI3NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1892750?v=4","gravatar_id":"","url":"https://api.github.com/users/csos95","html_url":"https://github.com/csos95","followers_url":"https://api.github.com/users/csos95/followers","following_url":"https://api.github.com/users/csos95/following{/other_user}","gists_url":"https://api.github.com/users/csos95/gists{/gist_id}","starred_url":"https://api.github.com/users/csos95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csos95/subscriptions","organizations_url":"https://api.github.com/users/csos95/orgs","repos_url":"https://api.github.com/users/csos95/repos","events_url":"https://api.github.com/users/csos95/events{/privacy}","received_events_url":"https://api.github.com/users/csos95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-04T22:19:41Z","updated_at":"2018-08-06T16:43:31Z","closed_at":null,"author_association":"NONE","body":"I have a user table\r\n```sql\r\ncreate table user (\r\n  id int primary key auto_increment,\r\n  name varchar(20) not null unique,\r\n  salt varchar(64) not null,\r\n  hash varchar(128) not null,\r\n  created_at datetime not null,\r\n  updated_at datetime not null\r\n);\r\n```\r\n\r\nand I would like the generated struct to have struct tags telling the json, toml, and yaml marshallers to ignore the salt and hash fields\r\n```go\r\ntype User struct {\r\n\tID        int       `boil:\"id\" json:\"id\" toml:\"id\" yaml:\"id\"`\r\n\tName      string    `boil:\"name\" json:\"name\" toml:\"name\" yaml:\"name\"`\r\n\tSalt      string    `boil:\"salt\" json:\"-\" toml:\"-\" yaml:\"-\"`\r\n\tHash      string    `boil:\"hash\" json:\"-\" toml:\"-\" yaml:\"-\"`\r\n\tCreatedAt time.Time `boil:\"created_at\" json:\"created_at\" toml:\"created_at\" yaml:\"created_at\"`\r\n\tUpdatedAt time.Time `boil:\"updated_at\" json:\"updated_at\" toml:\"updated_at\" yaml:\"updated_at\"`\r\n\r\n\tR *userR `boil:\"-\" json:\"-\" toml:\"-\" yaml:\"-\"`\r\n\tL userL  `boil:\"-\" json:\"-\" toml:\"-\" yaml:\"-\"`\r\n}\r\n```\r\nSorry if this is already included and I missed it."},"comment":{"url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/comments/410772239","html_url":"https://github.com/volatiletech/sqlboiler/issues/360#issuecomment-410772239","issue_url":"https://api.github.com/repos/volatiletech/sqlboiler/issues/360","id":410772239,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDc3MjIzOQ==","user":{"login":"aarondl","id":699706,"node_id":"MDQ6VXNlcjY5OTcwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/699706?v=4","gravatar_id":"","url":"https://api.github.com/users/aarondl","html_url":"https://github.com/aarondl","followers_url":"https://api.github.com/users/aarondl/followers","following_url":"https://api.github.com/users/aarondl/following{/other_user}","gists_url":"https://api.github.com/users/aarondl/gists{/gist_id}","starred_url":"https://api.github.com/users/aarondl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarondl/subscriptions","organizations_url":"https://api.github.com/users/aarondl/orgs","repos_url":"https://api.github.com/users/aarondl/repos","events_url":"https://api.github.com/users/aarondl/events{/privacy}","received_events_url":"https://api.github.com/users/aarondl/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T16:43:31Z","updated_at":"2018-08-06T16:43:31Z","author_association":"MEMBER","body":"It's not. But in terms of serialization I've always told people to make new structs for this."}}
{"actor":{"display_login":"aarondl"}}