@@ -642,4 +642,36 @@ create table `r_block_group_block`
642642 ` block_group_id` int not null comment ' 区块分组id' ,
643643 primary key (` id` ) using btree,
644644 unique index ` u_idx_block_group_block` (block_id, block_group_id) using btree
645- ) engine = innodb comment = ' 区块分组和区块关系表' ;
645+ ) engine = innodb comment = ' 区块分组和区块关系表' ;
646+
647+ drop table if exists ` t_component_library` ;
648+
649+ create table `t_component_library `
650+ (
651+ ` id` int not null auto_increment comment ' 主键id' ,
652+ ` version` varchar (255 ) not null comment ' 版本' ,
653+ ` name` varchar (255 ) not null comment ' 名称' ,
654+ ` package` varchar (255 ) not null comment ' 包名' ,
655+ ` registry` varchar (255 ) comment ' 注册' ,
656+ ` framework` varchar (255 ) not null comment ' 技术栈' ,
657+ ` description` varchar (2000 ) comment ' 描述' ,
658+ ` script` varchar (255 ) comment ' 脚本地址' ,
659+ ` css` varchar (255 ) comment ' 样式地址' ,
660+ ` bundle` varchar (255 ) comment ' bundle.json地址' ,
661+ ` dependencies` longtext comment ' 依赖' ,
662+ ` others` longtext comment ' 其他' ,
663+ ` thumbnail` varchar (255 ) comment ' 略图' ,
664+ ` public` int comment ' 公开状态:0,1,2' ,
665+ ` is_started` tinyint (1 ) comment ' 是否启用' ,
666+ ` is_official` tinyint (1 ) comment ' 是否是官方' ,
667+ ` is_default` tinyint (1 ) comment ' 是否是默认' ,
668+ ` tenant_id` varchar (60 ) not null comment ' 租户id' ,
669+ ` renter_id` varchar (60 ) comment ' 业务租户id' ,
670+ ` site_id` varchar (60 ) comment ' 站点id,设计预留字段' ,
671+ ` created_by` varchar (60 ) not null comment ' 创建人' ,
672+ ` created_time` timestamp not null default current_timestamp comment ' 创建时间' ,
673+ ` last_updated_by` varchar (60 ) not null comment ' 最后修改人' ,
674+ ` last_updated_time` timestamp not null default current_timestamp comment ' 更新时间' ,
675+ primary key (` id` ) using btree,
676+ unique index ` u_idx_component_library` (` tenant_id` , ` name` , ` version` ) using btree
677+ ) engine = innodb comment = ' 组件库表' ;
0 commit comments