Преглед на файлове

feat:后端项目,在业务模块中新增接口调用次数SKU数据表;

yang yi преди 8 месеца
родител
ревизия
80abfb51e2
променени са 1 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. 15 0
      sql/init.sql

+ 15 - 0
sql/init.sql

@@ -62,3 +62,18 @@ create table if not exists `user_interface_info`
     `update_time` datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
     `delete_flag` tinyint default 0 not null comment '是否删除(0-未删, 1-已删)'
 ) comment '用户调用接口关系表';
+
+-- 接口调用次数sku
+create table if not exists `interface_invoke_sku`(
+    `id` bigint not null comment '主键' primary key,
+    `interface_info_id` bigint not null comment '接口Id',
+    `title` char(64) not null comment '商品标题',
+    `cover` varchar(256) default '' comment '封面',
+    `price` decimal(10,2) not null comment '价格',
+    `quantity` int not null comment '数量',
+    `info` varchar(1024) comment '描述',
+    `status` tinyint not null default 0 comment '状态;0:未上架,1:上架,2:下架',
+    `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-已删)'
+)