{"published":"2016-11-20 13:41:50","image_url":null,"url":"https://kiharekato.hatenablog.com/entry/2016/11/20/134150","categories":["Go","gorm"],"height":"190","blog_url":"https://kiharekato.hatenablog.com/","provider_url":"https://hatena.blog","title":"gorm\u3067Model\u306eenum\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u66f8\u304d\u65b9","type":"rich","provider_name":"Hatena Blog","author_name":"kiharekato","width":"100%","description":"Golang\u306egorm\u3067enum\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u6642\u306b\u66f8\u304d\u65b9\u306b\u56f0\u3063\u305f\u306e\u3067\u305d\u306e\u6642\u306e\u30e1\u30e2 type Item struct { ID uint `gorm:\"primary_key\"` Name string `gorm:\"size:255;not null\"` Sex string `gorm:\"type: enum('male', 'female', 'unspecified'); default: 'unspecified'; not null\"` } Models \u00b7 GORM Guide","blog_title":"\u30c8\u30e9\u30f3\u30b6\u30e0","author_url":"https://blog.hatena.ne.jp/kiharekato/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiharekato.hatenablog.com%2Fentry%2F2016%2F11%2F20%2F134150\" title=\"gorm\u3067Model\u306eenum\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u66f8\u304d\u65b9 - \u30c8\u30e9\u30f3\u30b6\u30e0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}