|
|
@@ -48,3 +48,17 @@ create table if not exists `interface_param`
|
|
|
`update_time` datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
|
|
|
`delete_flag` tinyint default 0 not null comment '是否删除(0-未删, 1-已删)'
|
|
|
) comment '接口参数';
|
|
|
+
|
|
|
+-- 用户调用接口关系表
|
|
|
+create table if not exists `user_interface_info`
|
|
|
+(
|
|
|
+ `id` bigint not null auto_increment comment '主键' primary key,
|
|
|
+ `user_id` bigint not null comment '调用用户Id',
|
|
|
+ `interface_info_id` bigint not null comment '接口Id',
|
|
|
+ `total_num` int default 0 not null comment '总调用次数',
|
|
|
+ `left_num` int default 0 not null comment '剩余调用次数',
|
|
|
+ `status` int default 0 not null comment '0-正常 ,1-禁用',
|
|
|
+ `create_time` datetime default CURRENT_TIMESTAMP not null comment '创建时间',
|
|
|
+ `update_time` datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
|
|
|
+ `delete_flag` tinyint default 0 not null comment '是否删除(0-未删, 1-已删)'
|
|
|
+) comment '用户调用接口关系表';
|