From 37386e262535aeb92186e09777fae2e2a4499e8f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 21 May 2026 12:46:36 +0800 Subject: [PATCH] feat: add json table definitions for all models (converted from xlsx) --- models/downapikey.json | 61 ++++++++++++++++++++++++++++++++++++++++++ models/downapp.json | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 models/downapikey.json create mode 100644 models/downapp.json diff --git a/models/downapikey.json b/models/downapikey.json new file mode 100644 index 0000000..c52fd56 --- /dev/null +++ b/models/downapikey.json @@ -0,0 +1,61 @@ +{ + "summary": [ + { + "name": "downapikey", + "title": "下位系统apikey", + "primary": [ + "id" + ] + } + ], + "fields": [ + { + "name": "id", + "title": "id", + "type": "str", + "length": 32 + }, + { + "name": "dappid", + "title": "下位系统id", + "type": "str", + "length": 32 + }, + { + "name": "userid", + "title": "用户id", + "type": "str", + "length": 32 + }, + { + "name": "apikey", + "title": "akikey", + "type": "str", + "length": 100 + }, + { + "name": "enabled_date", + "title": "创建日期", + "type": "date" + }, + { + "name": "expired_date", + "title": "失效日期", + "type": "date" + } + ], + "codes": [ + { + "field": "dappid", + "table": "downapp", + "valuefield": "id", + "textfield": "name" + }, + { + "field": "userid", + "table": "users", + "valuefield": "id", + "textfield": "username" + } + ] +} \ No newline at end of file diff --git a/models/downapp.json b/models/downapp.json new file mode 100644 index 0000000..e7211e7 --- /dev/null +++ b/models/downapp.json @@ -0,0 +1,49 @@ +{ + "summary": [ + { + "name": "downapp", + "title": "下位系统", + "primary": [ + "id" + ] + } + ], + "fields": [ + { + "name": "id", + "title": "id", + "type": "str", + "length": 32 + }, + { + "name": "name", + "title": "下位应用名", + "type": "str", + "length": 200 + }, + { + "name": "description", + "title": "描述", + "type": "text", + "default": "0" + }, + { + "name": "secretkey", + "title": "加密密钥", + "type": "str", + "length": 100 + }, + { + "name": "allowedips", + "title": "允许ip集", + "type": "str", + "length": 300 + }, + { + "name": "orgid", + "title": "所属机构", + "type": "str", + "length": 32 + } + ] +} \ No newline at end of file