Pil0tXia commented on code in PR #77: URL: https://github.com/apache/eventmesh-dashboard/pull/77#discussion_r1545160048
########## eventmesh-dashboard-console/src/main/resources/eventmesh-dashboard.sql: ########## @@ -169,30 +162,67 @@ create table store endpoint_map varchar(1024) default '' not null comment '监听信息', constraint uniq_cluster_phy_id__storage_id unique (cluster_id, store_id) -) - comment 'Store信息表'; +) comment 'Store信息表'; create index idx_store_id_runtime_id on store (store_id, cluster_id, runtime_id); +DROP TABLE IF EXISTS `service_user`; +CREATE TABLE `service_user` +( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', + `service_type` int(255) NOT NULL DEFAULT 0 COMMENT '区分不同软件', + `password` varchar(100) NOT NULL DEFAULT '' COMMENT '密码', + `cluster_id` bigint(20) NOT NULL DEFAULT '-1' COMMENT '物理集群ID', + `name` varchar(192) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '名称', + `token` varchar(8192) NOT NULL DEFAULT '' COMMENT '密钥', + `status` int default 1 not null comment '状态: 1启用,0未启用', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Service_User信息表'; + + + +DROP TABLE IF EXISTS `acl`; +CREATE TABLE `acl` +( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', + `cluster_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '集群id', + `principal` varchar(192) NOT NULL DEFAULT '' COMMENT 'Service User Pattern', Review Comment: May I ask that why you use the designation `principal` instead of `pattern` here? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org For additional commands, e-mail: issues-h...@eventmesh.apache.org