{"action":"opened","issue":{"url":"https://api.github.com/repos/fhteam/eloquent-custom-attributes/issues/1","labels_url":"https://api.github.com/repos/fhteam/eloquent-custom-attributes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fhteam/eloquent-custom-attributes/issues/1/comments","events_url":"https://api.github.com/repos/fhteam/eloquent-custom-attributes/issues/1/events","html_url":"https://github.com/fhteam/eloquent-custom-attributes/issues/1","id":116659427,"number":1,"title":"Composite type of type double,enum/string?","user":{"login":"martimarkov","id":1858736,"avatar_url":"https://avatars.githubusercontent.com/u/1858736?v=3","gravatar_id":"","url":"https://api.github.com/users/martimarkov","html_url":"https://github.com/martimarkov","followers_url":"https://api.github.com/users/martimarkov/followers","following_url":"https://api.github.com/users/martimarkov/following{/other_user}","gists_url":"https://api.github.com/users/martimarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/martimarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martimarkov/subscriptions","organizations_url":"https://api.github.com/users/martimarkov/orgs","repos_url":"https://api.github.com/users/martimarkov/repos","events_url":"https://api.github.com/users/martimarkov/events{/privacy}","received_events_url":"https://api.github.com/users/martimarkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T22:48:51Z","updated_at":"2015-11-12T22:48:51Z","closed_at":null,"body":"Hey,\r\n\r\nI'm getting a bit confused here, how would you implement a composite type (for PostgreSQL) http://www.postgresql.org/docs/current/static/rowtypes.html\r\n\r\nthat has just a double value and a enum or string for example:\r\n\r\n```sql\r\nCREATE TYPE quantity_unit AS ENUM ('mph', 'kg', 'inc'); #different quantity types go here\r\n\r\nCREATE TYPE quantity AS (\r\n    val       double precision,\r\n    type       quantity_unit\r\n);\r\n```\r\n"}}