refactor(models): convert to json format per database-table-definition-spec
This commit is contained in:
parent
cb8910cb40
commit
6c3ff0c7aa
83
models/apiparams.json
Normal file
83
models/apiparams.json
Normal file
@ -0,0 +1,83 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "apiparams",
|
||||
"title": "接口参数",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "params_type",
|
||||
"title": "接口名称",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "objid",
|
||||
"title": "模型或实例id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "apidataid",
|
||||
"title": "父数据id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "datatype",
|
||||
"title": "数据类型",
|
||||
"type": "str",
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"title": "数据值",
|
||||
"type": "str",
|
||||
"length": 1000
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"apidataid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"apidataid",
|
||||
"params_type",
|
||||
"objid"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "params_type",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='params_type'"
|
||||
},
|
||||
{
|
||||
"field": "datatype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='datatype'"
|
||||
}
|
||||
]
|
||||
}
|
||||
40
models/appcodes.json
Normal file
40
models/appcodes.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "appcodes",
|
||||
"title": "应用编码表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "编码名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "hierarchy_flg",
|
||||
"title": "多级标志",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "hierarchy_flg",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='code_hierarchy'"
|
||||
}
|
||||
]
|
||||
}
|
||||
54
models/appcodes_kv.json
Normal file
54
models/appcodes_kv.json
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "appcodes_kv",
|
||||
"title": "编码键值表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "parentid",
|
||||
"title": "父id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "k",
|
||||
"title": "键",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "v",
|
||||
"title": "值",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"parentid",
|
||||
"k"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"parentid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
211
models/feelog.json
Normal file
211
models/feelog.json
Normal file
@ -0,0 +1,211 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "feelog",
|
||||
"title": "模型计费日志",
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "transdate",
|
||||
"title": "交易日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "transtime",
|
||||
"title": "交易时间",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "modelinstanceid",
|
||||
"title": "模型实例id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modeltypeid",
|
||||
"title": "模型类型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "pricing_mode",
|
||||
"title": "计费模式",
|
||||
"type": "str",
|
||||
"length": 30
|
||||
},
|
||||
{
|
||||
"name": "dialog_file",
|
||||
"title": "会话文件名",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "input_tokens",
|
||||
"title": "输入tokens",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "output_tokens",
|
||||
"title": "输出tokens",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "other_tokens",
|
||||
"title": "其他tokens",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "input_price",
|
||||
"title": "输入价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "output_price",
|
||||
"title": "输出价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "other_price",
|
||||
"title": "其他价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "timing_price",
|
||||
"title": "计次价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "timing_amount",
|
||||
"title": "计次金额",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "input_amount",
|
||||
"title": "输入金额",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "output_amount",
|
||||
"title": "输出金额",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "other_amount",
|
||||
"title": "其他金额",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "accounting_status",
|
||||
"title": "记账状态",
|
||||
"type": "str",
|
||||
"length": 30
|
||||
},
|
||||
{
|
||||
"name": "resp_time",
|
||||
"title": "响应时间",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "finish_time",
|
||||
"title": "完成时间",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "estimate",
|
||||
"title": "评价",
|
||||
"type": "short"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"transdate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"customerid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx3",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"userid"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "modelinstanceid",
|
||||
"table": "modelinstance",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "modeltypeid",
|
||||
"table": "modeltypes",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "customerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "userid",
|
||||
"table": "users",
|
||||
"valuefield": "id",
|
||||
"textfield": "username"
|
||||
}
|
||||
]
|
||||
}
|
||||
110
models/httpapi.json
Normal file
110
models/httpapi.json
Normal file
@ -0,0 +1,110 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "httpapi",
|
||||
"title": "http程序接口",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "apiname",
|
||||
"title": "接口名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"title": "接口名称",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "providerid",
|
||||
"title": "接口提供方",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "apiinfo",
|
||||
"title": "接口内容",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
},
|
||||
{
|
||||
"name": "apinote",
|
||||
"title": "接口描述",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "use_session",
|
||||
"title": "带历史信息",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "response_mode",
|
||||
"title": "响应模式",
|
||||
"type": "str",
|
||||
"length": 50
|
||||
},
|
||||
{
|
||||
"name": "system_msg_format",
|
||||
"title": "系统消息模版",
|
||||
"type": "str",
|
||||
"length": 1000
|
||||
},
|
||||
{
|
||||
"name": "user_msg_format",
|
||||
"title": "用户消息模版",
|
||||
"type": "str",
|
||||
"length": 1000
|
||||
},
|
||||
{
|
||||
"name": "llm_msg_format",
|
||||
"title": "模型消息模版",
|
||||
"type": "str",
|
||||
"length": 1000
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"apiname"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "providerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "use_session",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='yesno'"
|
||||
},
|
||||
{
|
||||
"field": "response_mode",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='resp_mode'"
|
||||
}
|
||||
]
|
||||
}
|
||||
70
models/minimax_acc.json
Normal file
70
models/minimax_acc.json
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "minimax_acc",
|
||||
"title": "minimax账号",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "acc_id",
|
||||
"title": "minimax账号id",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "acc_name",
|
||||
"title": "账号名称",
|
||||
"type": "str",
|
||||
"length": 300
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"title": "账号密码",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "apikey",
|
||||
"title": "账号apikey",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
},
|
||||
{
|
||||
"name": "groupid",
|
||||
"title": "组号",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "acc_status",
|
||||
"title": "账号状态",
|
||||
"type": "short",
|
||||
"default": 0
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"userid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
80
models/minimax_bill.json
Normal file
80
models/minimax_bill.json
Normal file
@ -0,0 +1,80 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "minimax_bill",
|
||||
"title": "minimax账单",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "acc_id",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "modelinstanceid",
|
||||
"title": "模型实例id",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "acc_name",
|
||||
"title": "账号名称",
|
||||
"type": "str",
|
||||
"length": 100,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "consume_time",
|
||||
"title": "消费时间戳",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "consume_token",
|
||||
"title": "消费token数",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "consume_amt",
|
||||
"title": "消费金额",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "create_at",
|
||||
"title": "创建时间",
|
||||
"type": "timestamp"
|
||||
},
|
||||
{
|
||||
"name": "consume_date",
|
||||
"title": "消费日期",
|
||||
"type": "date"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"customerid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
57
models/modelapi.json
Normal file
57
models/modelapi.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modelapi",
|
||||
"title": "模型接口",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modelid",
|
||||
"title": "模型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "apiid",
|
||||
"title": "接口id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modeltypeid",
|
||||
"title": "模型类型",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "modelid",
|
||||
"table": "models",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "apiid",
|
||||
"table": "httpapi",
|
||||
"valuefield": "id",
|
||||
"textfield": "apiname"
|
||||
},
|
||||
{
|
||||
"field": "modeltypeid",
|
||||
"table": "modeltype",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
73
models/modelinstance.json
Normal file
73
models/modelinstance.json
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modelinstance",
|
||||
"title": "模型实例",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modelid",
|
||||
"title": "模型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "实例名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"title": "实例名称",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "实例说明",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "base_url",
|
||||
"title": "接口ur",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "ownerid",
|
||||
"title": "属主id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "enable_date",
|
||||
"title": "启动日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "expore_date",
|
||||
"title": "失效日期",
|
||||
"type": "date"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "modelid",
|
||||
"table": "models",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
69
models/modeliodata.json
Normal file
69
models/modeliodata.json
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modeliodata",
|
||||
"title": "模型输入输出数据",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "数据名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"title": "标题",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "datatype",
|
||||
"title": "数据类型",
|
||||
"type": "str",
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"name": "uitype",
|
||||
"title": "输入类型",
|
||||
"type": "str",
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"name": "length",
|
||||
"title": "长度",
|
||||
"type": "short"
|
||||
},
|
||||
{
|
||||
"name": "dec",
|
||||
"title": "小数点数",
|
||||
"type": "short"
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "uitype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='uitype'"
|
||||
},
|
||||
{
|
||||
"field": "datatype",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='datatype'"
|
||||
}
|
||||
]
|
||||
}
|
||||
94
models/modelpricing.json
Normal file
94
models/modelpricing.json
Normal file
@ -0,0 +1,94 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modelpricing",
|
||||
"title": "模型计费",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modelinstanceid",
|
||||
"title": "模型实例id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modeltypeid",
|
||||
"title": "模型类型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "enable_date",
|
||||
"title": "开始日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "expired_date",
|
||||
"title": "失效日期",
|
||||
"type": "date"
|
||||
},
|
||||
{
|
||||
"name": "pricing_mode",
|
||||
"title": "计费类型",
|
||||
"type": "str",
|
||||
"length": 30
|
||||
},
|
||||
{
|
||||
"name": "token_cnt",
|
||||
"title": "token数量",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "input_price",
|
||||
"title": "输入价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "output_price",
|
||||
"title": "输出价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
},
|
||||
{
|
||||
"name": "timing_price",
|
||||
"title": "计次价格",
|
||||
"type": "float",
|
||||
"length": 18,
|
||||
"dec": 2
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "pricing_mode",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='pricing_mode'"
|
||||
},
|
||||
{
|
||||
"field": "modelinstanceid",
|
||||
"table": "modelinstance",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
},
|
||||
{
|
||||
"field": "modeltypeid",
|
||||
"table": "modeltype",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
37
models/modelprovider.json
Normal file
37
models/modelprovider.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modelprovider",
|
||||
"title": "模型供应商",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "供应商名",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"title": "供应商名称",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "说明",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
57
models/models.json
Normal file
57
models/models.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "models",
|
||||
"title": "大模型",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "英文名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"title": "模型名称",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "模型说明",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "icon_url",
|
||||
"title": "模型图标URL",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "providerid",
|
||||
"title": "供应商id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "providerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
}
|
||||
]
|
||||
}
|
||||
64
models/modeltype.json
Normal file
64
models/modeltype.json
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modeltype",
|
||||
"title": "模型类型",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "类型名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "类型说明",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "is_multiple",
|
||||
"title": "是否多模态",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"name": "input_fields",
|
||||
"title": "输入字段",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
},
|
||||
{
|
||||
"name": "input_view",
|
||||
"title": "输入显示",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
},
|
||||
{
|
||||
"name": "output_view",
|
||||
"title": "输出显示",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "is_multiple",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='yesno'"
|
||||
}
|
||||
]
|
||||
}
|
||||
46
models/modeltypein.json
Normal file
46
models/modeltypein.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modeltypein",
|
||||
"title": "模型类型输入数据",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modeltypeid",
|
||||
"title": "模型类型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "iodataid",
|
||||
"title": "io数据id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "required",
|
||||
"title": "是否必须",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "required",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='yesno'"
|
||||
}
|
||||
]
|
||||
}
|
||||
37
models/modeltypeout.json
Normal file
37
models/modeltypeout.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "modeltypeout",
|
||||
"title": "模型类型输出数据",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "modeltypeid",
|
||||
"title": "模型类型id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "iodataid",
|
||||
"title": "io数据id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "resp_keys",
|
||||
"title": "在响应包中的位置",
|
||||
"type": "str",
|
||||
"length": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
43
models/org_roles.json
Normal file
43
models/org_roles.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "org_roles",
|
||||
"title": "机构角色",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgid",
|
||||
"title": "机构编码",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "roleid",
|
||||
"title": "角色编码",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "del_flg",
|
||||
"title": "删除标志",
|
||||
"type": "str",
|
||||
"length": 1,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "create_at",
|
||||
"title": "创建时间戳",
|
||||
"type": "timestamp"
|
||||
}
|
||||
]
|
||||
}
|
||||
127
models/organization.json
Normal file
127
models/organization.json
Normal file
@ -0,0 +1,127 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "organization",
|
||||
"title": "机构",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "机构编码",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgname",
|
||||
"title": "机构名称",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "alias_name",
|
||||
"title": "机构别名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "contactor",
|
||||
"title": "联系人",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "contactor_phone",
|
||||
"title": "联系人电话",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "province_id",
|
||||
"title": "所在省id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "city_id",
|
||||
"title": "所在城市id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "distinct_id",
|
||||
"title": "所在地区id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "emailaddress",
|
||||
"title": "邮箱",
|
||||
"type": "str",
|
||||
"length": 256
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"title": "地址",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "main_business",
|
||||
"title": "主营业务描述",
|
||||
"type": "str",
|
||||
"length": 1000
|
||||
},
|
||||
{
|
||||
"name": "orgcode",
|
||||
"title": "组织结构代码",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "license_img",
|
||||
"title": "营业执照",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "id_img",
|
||||
"title": "身份证",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "parentid",
|
||||
"title": "父机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "org_type",
|
||||
"title": "机构类型",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "accountid",
|
||||
"title": "账号",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "del_flg",
|
||||
"title": "删除标志",
|
||||
"type": "str",
|
||||
"length": 1,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "create_at",
|
||||
"title": "创建时间戳",
|
||||
"type": "timestamp"
|
||||
}
|
||||
]
|
||||
}
|
||||
40
models/orgtypes.json
Normal file
40
models/orgtypes.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "orgtypes",
|
||||
"title": "机构拥有角色",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgid",
|
||||
"title": "机构id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgtypeid",
|
||||
"title": "机构类型",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "orgtypeid",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='org_type'"
|
||||
}
|
||||
]
|
||||
}
|
||||
77
models/permission.json
Normal file
77
models/permission.json
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "permission",
|
||||
"title": "权限",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "权限id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "名称",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"title": "描述",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "ptype",
|
||||
"title": "类型",
|
||||
"type": "str",
|
||||
"length": 20
|
||||
},
|
||||
{
|
||||
"name": "parentid",
|
||||
"title": "父权限id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"title": "路径",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"title": "标题",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "icon",
|
||||
"title": "图标",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"ptype"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"parentid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
57
models/role.json
Normal file
57
models/role.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "role",
|
||||
"title": " 角色",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "角色id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "orgtypeid",
|
||||
"title": "机构类型",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "role",
|
||||
"title": "角色",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "rolelabel",
|
||||
"title": "角色名称",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"orgtypeid",
|
||||
" role"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "orgtypeid",
|
||||
"table": "appcodes_kw",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='org_type'"
|
||||
}
|
||||
]
|
||||
}
|
||||
31
models/rolepermission.json
Normal file
31
models/rolepermission.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "rolepermission",
|
||||
"title": "角色权限表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "roleid",
|
||||
"title": "角色id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "permid",
|
||||
"title": "权限id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
]
|
||||
}
|
||||
91
models/token_usage.json
Normal file
91
models/token_usage.json
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "token_usgae",
|
||||
"title": "token使用表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "customerid",
|
||||
"title": "客户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "callname",
|
||||
"title": "调用名",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "modelinstanceid",
|
||||
"title": "模型实例id",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "u_date",
|
||||
"title": "使用日期",
|
||||
"type": "date",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "u_time",
|
||||
"title": "使用时间",
|
||||
"type": "timestamp",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "input_usage",
|
||||
"title": "输入token数",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "output_usage",
|
||||
"title": "输出token数",
|
||||
"type": "long"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"userid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"customerid",
|
||||
"userid",
|
||||
"modelinstanceid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx3",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"customerid",
|
||||
"modelinstanceid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
94
models/userapikey.json
Normal file
94
models/userapikey.json
Normal file
@ -0,0 +1,94 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "userapikey",
|
||||
"title": "用户api密码表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "providerid",
|
||||
"title": "供应商id",
|
||||
"type": "str",
|
||||
"length": 200
|
||||
},
|
||||
{
|
||||
"name": "ownerid",
|
||||
"title": "属主id",
|
||||
"type": "str",
|
||||
"length": 32,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "apikey",
|
||||
"title": "api密钥",
|
||||
"type": "str",
|
||||
"length": 4000,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "secretkey",
|
||||
"title": "附属密钥",
|
||||
"type": "str",
|
||||
"length": 4000
|
||||
},
|
||||
{
|
||||
"name": "rfname",
|
||||
"title": "函数名",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "apiuser",
|
||||
"title": "api用户",
|
||||
"type": "str",
|
||||
"length": 100
|
||||
},
|
||||
{
|
||||
"name": "apipasswd",
|
||||
"title": "api密码",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"providerid",
|
||||
"customerid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"customerid"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "providerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "ownerid",
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
}
|
||||
]
|
||||
}
|
||||
43
models/userdepartment.json
Normal file
43
models/userdepartment.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "userdepartment",
|
||||
"title": "用户部门表",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "depid",
|
||||
"title": "部门id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "del_flg",
|
||||
"title": "删除标志",
|
||||
"type": "str",
|
||||
"length": 1,
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "create_at",
|
||||
"title": "创建时间戳",
|
||||
"type": "timestamp"
|
||||
}
|
||||
]
|
||||
}
|
||||
45
models/userroles.json
Normal file
45
models/userroles.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "userrole",
|
||||
"title": "用户角色",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "userid",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "roleid",
|
||||
"title": "角色id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "userid",
|
||||
"table": "users",
|
||||
"valuefield": "id",
|
||||
"textfield": "username"
|
||||
},
|
||||
{
|
||||
"field": "roleid",
|
||||
"table": "role",
|
||||
"valuefield": "id",
|
||||
"textfield": "role"
|
||||
}
|
||||
]
|
||||
}
|
||||
90
models/users.json
Normal file
90
models/users.json
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "users",
|
||||
"title": "用户",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "用户id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"title": "用户名",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "姓名",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"title": "密码",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"title": "邮件地址",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "orgid",
|
||||
"title": "所属机构",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "nick_name",
|
||||
"title": "显示名",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"title": "地址",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "mobile",
|
||||
"title": "手机",
|
||||
"type": "str",
|
||||
"length": 255
|
||||
},
|
||||
{
|
||||
"name": "user_status",
|
||||
"title": "用户状态",
|
||||
"type": "str",
|
||||
"length": 1,
|
||||
"default": "0"
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx1",
|
||||
"idxtype": "index",
|
||||
"idxfields": [
|
||||
"orgid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx2",
|
||||
"idxtype": "unique",
|
||||
"idxfields": [
|
||||
"username"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
51
models/xterm.json
Normal file
51
models/xterm.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"summary": [
|
||||
{
|
||||
"name": "xterm",
|
||||
"title": "终端",
|
||||
"primary": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"title": "id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"title": "终端名称",
|
||||
"type": "str",
|
||||
"length": 400
|
||||
},
|
||||
{
|
||||
"name": "hostid",
|
||||
"title": "描述",
|
||||
"type": "str",
|
||||
"length": 500
|
||||
},
|
||||
{
|
||||
"name": "ownerid",
|
||||
"title": "属主id",
|
||||
"type": "str",
|
||||
"length": 32
|
||||
},
|
||||
{
|
||||
"name": "cmd",
|
||||
"title": "命令",
|
||||
"type": "str",
|
||||
"length": 2000
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
{
|
||||
"field": "hostid",
|
||||
"table": "hostdev",
|
||||
"valuefield": "id",
|
||||
"textfield": "name"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user