3
0

upd(crm): type spec update

This commit is contained in:
Tit Petric
2018-08-15 17:41:47 +02:00
parent d2f0ab908b
commit 4f64d77b6a
2 changed files with 6 additions and 8 deletions

View File

@@ -51,14 +51,14 @@
]
},
{
"name": "ModuleContentRow",
"name": "Content",
"imports": [
"github.com/jmoiron/sqlx/types"
],
"fields": [
{ "name": "ID", "type": "uint64", "tag": "db:\"id\"" },
{ "name": "ModuleID", "type": "uint64", "tag": "db:\"module_id\"" },
{ "name": "Fields", "type": "types.JSONText", "tag": "db:\"address\"", "complex": true }
{ "name": "ID", "type": "uint64" },
{ "name": "ModuleID", "type": "uint64" },
{ "name": "Fields", "type": "types.JSONText", "db": "json", "complex": true }
]
}
],

View File

@@ -21,25 +21,23 @@
"fields": [
{
"name": "ID",
"tag": "db:\"id\"",
"type": "uint64"
},
{
"name": "ModuleID",
"tag": "db:\"module_id\"",
"type": "uint64"
},
{
"complex": true,
"db": "json",
"name": "Fields",
"tag": "db:\"address\"",
"type": "types.JSONText"
}
],
"imports": [
"github.com/jmoiron/sqlx/types"
],
"name": "ModuleContentRow"
"name": "Content"
}
],
"Parameters": null,