添加banner的接口逻辑

This commit is contained in:
Siyi Guo committed 2023-02-03 23:52:08 +08:00
1 parent e42a4549e9
commit a52d630acf
8 files changed
+505 -5

No files matched your search

+22
View File
@@ -76,3 +76,25 @@ insert into category values (28, '互嵌式发展专题', 'hqsfzzt', '互嵌式
insert into category values (29, '旅游振兴专题', 'lyzxzt', '旅游振兴专题-分类', 24, 0, 0, 0, 0, current_timestamp, current_timestamp, null);
insert into category values (30, '会员天地', 'hytd', '会员天地-分类', 0, 0, 0, 0, 0, current_timestamp, current_timestamp, null);
drop table `banner`;
create table `banner`
(
`id` bigint unsigned NOT NULL AUTO_INCREMENT comment '编码',
`title` varchar(1023) DEFAULT NULL comment '标题',
`url` text DEFAULT NULL comment '地址',
`slug` varchar(127) not null comment 'slug',
`type` int(2) DEFAULT 0 comment '类型',
`order` int DEFAULT 0 comment '排序',
`status` int(1) DEFAULT NULL comment '状态',
`create_by` bigint unsigned DEFAULT NULL,
`update_by` bigint unsigned DEFAULT NULL,
`publish_at` datetime NULL DEFAULT NULL comment '发布时间',
`created_at` datetime not null default current_timestamp comment '创建时间',
`updated_at` datetime not null default current_timestamp on update current_timestamp comment '更新时间',
`deleted_at` datetime NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci comment ='轮播图';