From ca4f10f3e5594432192aa0edd1309421b7922169 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Wed, 15 Aug 2018 20:30:34 +0200 Subject: [PATCH] upd(crm spec): composite jsontext fields on module --- crm/docs/src/spec.json | 6 +++++- crm/docs/src/spec/module.json | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/crm/docs/src/spec.json b/crm/docs/src/spec.json index 45134d1b6..2f2409747 100644 --- a/crm/docs/src/spec.json +++ b/crm/docs/src/spec.json @@ -45,9 +45,13 @@ "struct": [ { "name": "Module", + "imports": [ + "github.com/jmoiron/sqlx/types" + ], "fields": [ { "name": "ID", "type": "uint64" }, - { "name": "Name", "type": "string" } + { "name": "Name", "type": "string" }, + { "name": "Fields", "type": "types.JSONText", "db": "json", "complex": true } ] }, { diff --git a/crm/docs/src/spec/module.json b/crm/docs/src/spec/module.json index b1b7601c8..476494fe9 100644 --- a/crm/docs/src/spec/module.json +++ b/crm/docs/src/spec/module.json @@ -13,8 +13,17 @@ { "name": "Name", "type": "string" + }, + { + "complex": true, + "db": "json", + "name": "Fields", + "type": "types.JSONText" } ], + "imports": [ + "github.com/jmoiron/sqlx/types" + ], "name": "Module" }, {