From bb6bdf40fabcf42c33003d28a45a96609bafefa8 Mon Sep 17 00:00:00 2001 From: ymq Date: Thu, 17 Sep 2026 13:50:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(models):=20pipeline=5Fuser=5Fsecrets=20?= =?UTF-8?q?=E8=A1=A8=E6=A8=A1=E5=9E=8B=E5=AE=9A=E4=B9=89(2026-09-17)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/pipeline_user_secrets.json | 164 ++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 models/pipeline_user_secrets.json diff --git a/models/pipeline_user_secrets.json b/models/pipeline_user_secrets.json new file mode 100644 index 0000000..c176e8e --- /dev/null +++ b/models/pipeline_user_secrets.json @@ -0,0 +1,164 @@ +{ + "summary": [ + { + "name": "pipeline_user_secrets", + "title": "用户敏感信息", + "primary": [ + "id" + ], + "catelog": "entity" + } + ], + "fields": [ + { + "name": "id", + "title": "主键ID", + "type": "str", + "length": 32, + "nullable": "no" + }, + { + "name": "name", + "title": "变量名", + "type": "str", + "length": 64, + "nullable": "no" + }, + { + "name": "label", + "title": "显示名称", + "type": "str", + "length": 128, + "nullable": "no", + "default": "" + }, + { + "name": "secret_type", + "title": "类型", + "type": "str", + "length": 32, + "nullable": "no", + "default": "other" + }, + { + "name": "encrypted_value", + "title": "密文值", + "type": "longtext", + "nullable": "no" + }, + { + "name": "fingerprint", + "title": "指纹", + "type": "str", + "length": 64, + "nullable": "no", + "default": "" + }, + { + "name": "prefix_hint", + "title": "前缀提示", + "type": "str", + "length": 32, + "nullable": "no", + "default": "" + }, + { + "name": "length_hint", + "title": "长度", + "type": "int", + "nullable": "no", + "default": 0 + }, + { + "name": "org_id", + "title": "机构ID", + "type": "str", + "length": 32, + "nullable": "no", + "default": "" + }, + { + "name": "user_id", + "title": "用户ID", + "type": "str", + "length": 32, + "nullable": "no", + "default": "" + }, + { + "name": "source", + "title": "来源", + "type": "str", + "length": 32, + "nullable": "no", + "default": "manual" + }, + { + "name": "status", + "title": "状态", + "type": "str", + "length": 16, + "nullable": "no", + "default": "active" + }, + { + "name": "remark", + "title": "备注", + "type": "str", + "length": 480, + "nullable": "no", + "default": "" + }, + { + "name": "use_count", + "title": "使用次数", + "type": "int", + "nullable": "no", + "default": 0 + }, + { + "name": "last_used_at", + "title": "最近使用时间", + "type": "timestamp", + "nullable": "yes" + }, + { + "name": "created_at", + "title": "创建时间", + "type": "timestamp", + "nullable": "no" + }, + { + "name": "updated_at", + "title": "更新时间", + "type": "timestamp", + "nullable": "no" + } + ], + "indexes": [ + { + "name": "uk_org_user_name", + "idxtype": "unique", + "idxfields": [ + "org_id", + "user_id", + "name" + ] + }, + { + "name": "idx_fingerprint", + "idxtype": "index", + "idxfields": [ + "fingerprint" + ] + }, + { + "name": "idx_user_status", + "idxtype": "index", + "idxfields": [ + "user_id", + "status" + ] + } + ] +}