feat(models): pipeline_user_secrets 表模型定义(2026-09-17)
This commit is contained in:
parent
062c31e482
commit
bb6bdf40fa
164
models/pipeline_user_secrets.json
Normal file
164
models/pipeline_user_secrets.json
Normal file
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user