{"html_url": "https://github.com/simonw/datasette/issues/1911#issuecomment-1331135709", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1911", "id": 1331135709, "node_id": "IC_kwDOBm6k_c5PV4Td", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-29T18:50:58Z", "updated_at": "2022-11-29T18:50:58Z", "author_association": "OWNER", "body": "Updated docs: https://docs.datasette.io/en/1.0-dev/json_api.html#creating-a-table", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1468519699, "label": "`/db/-/create` should support creating tables with compound primary keys"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1911#issuecomment-1331120055", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1911", "id": 1331120055, "node_id": "IC_kwDOBm6k_c5PV0e3", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-11-29T18:36:01Z", "updated_at": "2022-11-29T18:36:01Z", "author_association": "OWNER", "body": "Current API design:\r\n```\r\nPOST //-/create\r\n```\r\n```json\r\n{\r\n \"table\": \"name_of_new_table\",\r\n \"columns\": [\r\n {\r\n \"name\": \"id\",\r\n \"type\": \"integer\"\r\n },\r\n {\r\n \"name\": \"title\",\r\n \"type\": \"text\"\r\n }\r\n ],\r\n \"pk\": \"id\"\r\n}\r\n```\r\nI'm going to add a new `\"pks\"` key which is a list, and can be used in place of `\"pk\"`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1468519699, "label": "`/db/-/create` should support creating tables with compound primary keys"}, "performed_via_github_app": null}