From fb66d5ed24e716e536543364f746a9db5aeb20a9 Mon Sep 17 00:00:00 2001
From: shikeying <shikeying@163.com>
Date: 星期二, 27 九月 2022 18:47:56 +0800
Subject: [PATCH] 视频相似度分析4

---
 recommend-video/doc/table.SQL |  191 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 190 insertions(+), 1 deletions(-)

diff --git a/recommend-video/doc/table.SQL b/recommend-video/doc/table.SQL
index 4506ab4..8c5d46e 100644
--- a/recommend-video/doc/table.SQL
+++ b/recommend-video/doc/table.SQL
@@ -1,3 +1,6 @@
+-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-- 浠ヤ笅涓虹储寮曡缃�
+-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ALTER TABLE rc_video_t1
     ADD INDEX inx_src_img (src_img) USING BTREE ;
@@ -17,4 +20,190 @@
     ADD INDEX inx_vb_bid (batch_id) USING BTREE ;
 
 ALTER TABLE rc_video_user
-    ADD INDEX inx_vu_uid (user_id) USING BTREE ;
\ No newline at end of file
+    ADD INDEX inx_vu_uid (user_id) USING BTREE ;
+
+-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-- 浠ヤ笅涓鸿〃缁撴瀯
+-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+create table milvus_video_batch (
+                                    batch_id bigint(20) not null comment '鎵规id锛屽嵆锛氭棩鏈熸椂闂�',
+                                    video_id varchar(255) not null,
+                                    video_path varchar(255) default null,
+                                    vector_size int(11) not null default '0',
+                                    create_time bigint(20) not null,
+                                    status int(11) not null default '1' comment '鐘舵�侊細0 鏈畬鎴愶紝1瀹屾垚'
+) engine=innodb default charset=utf8;
+
+create table milvus_video_search (
+                                     milvus_id text,
+                                     image_path text,
+                                     video_id text
+) engine=innodb default charset=utf8;
+
+create table milvus_video_status (
+                                     id varchar(255) not null comment '瑙嗛璺緞',
+                                     create_time bigint(20) not null,
+                                     status int(11) not null default '0' comment '瀹屾垚鐘舵��: 0 鏈畬鎴�, 1 瀹屾垚',
+                                     records bigint(20) not null default '0',
+                                     primary key (id)
+) engine=innodb default charset=utf8;
+
+create table rc_task_status (
+                                id bigint(20) not null comment '涓婚敭',
+                                create_time bigint(20) not null comment '鍒涘缓鏃堕棿锛屽: 20220922180501',
+                                name varchar(180) not null comment '浠诲姟鍚嶇О',
+                                last_value bigint(20) not null comment '鑾峰彇鏁版嵁鐨勬渶澶у��',
+                                status varchar(32) not null comment '褰撳墠鐘舵�侊紝瑙佹灇涓�: taskstatus',
+                                start_time bigint(20) default null,
+                                end_time bigint(20) default null,
+                                msg varchar(180) default null comment '鎵ц鎻忚堪',
+                                task_type varchar(32) not null comment '浠诲姟绫诲瀷锛岃鏋氫妇: tasktype',
+                                primary key (id)
+) engine=innodb default charset=utf8;
+
+create table rc_video_batch (
+                                id bigint(20) not null,
+                                batch_id varchar(32) not null comment '鎵规id',
+                                user_id bigint(20) not null,
+                                src_video_id varchar(32) not null,
+                                src_video_path varchar(255) default null,
+                                primary key (id),
+                                key inx_vb_bid (batch_id) using btree
+) engine=innodb default charset=utf8;
+
+create table rc_video_t1 (
+                             src_img varchar(36) not null comment '鍥惧儚id',
+                             src_video_id varchar(32) not null,
+                             sim_video_id varchar(32) not null,
+                             distance double not null default '0',
+                             id varchar(32) not null,
+                             primary key (id),
+                             key inx_src_img (src_img) using btree,
+                             key inx_src_vid (src_video_id) using btree
+) engine=innodb default charset=utf8;
+
+create table rc_video_t2 (
+                             src_video_id varchar(32) not null,
+                             sim_video_id varchar(32) not null,
+                             score double not null default '0' comment '鐩镐技瑙嗛缁煎悎寰楀垎',
+                             id varchar(32) not null,
+                             batch_id varchar(32) not null default '0',
+                             primary key (id),
+                             key inx_t2_src_vid (src_video_id) using btree,
+                             key inx_t2_src_bid (batch_id) using btree
+) engine=innodb default charset=utf8;
+
+create table rc_video_user (
+                               user_id bigint(20) not null,
+                               video_id varchar(32) not null,
+                               score double not null default '0',
+                               create_time bigint(20) not null default '0',
+                               id bigint(20) not null,
+                               primary key (id),
+                               key inx_vu_uid (user_id) using btree
+) engine=innodb default charset=utf8;
+
+create table s_host (
+                        id bigint(20) not null auto_increment,
+                        create_time bigint(20) not null,
+                        create_user varchar(36) not null,
+                        url varchar(200) not null comment '搴撳湴鍧�',
+                        port int(11) not null default '1306' comment '绔彛',
+                        service_name varchar(100) default null comment '鏈嶅姟鍚嶇О',
+                        authentication varchar(30) default null comment '璁よ瘉鐢ㄦ埛',
+                        certification varchar(30) default null comment '鎺堟潈瀵嗙爜',
+                        max_active int(11) not null default '5' comment '鏈�澶ц繛鎺ユ暟',
+                        primary key (id)
+) engine=innodb auto_increment=105 default charset=utf8 comment='瀛樺偍璧勬簮鍙敤涓绘満';
+
+create table s_scheduler (
+                             id int(11) not null comment '璋冨害鍣╥d',
+                             create_time bigint(20) not null,
+                             name varchar(180) not null,
+                             status int(11) not null default '0' comment '鐘舵�侊細0_鍒濆鍖栵紝1_杩愯锛�2_鏆傚仠锛�9_缁撴潫锛�-1_浜哄伐缁堟',
+                             start_time bigint(20) not null default '0' comment '璋冨害寮�濮嬭繍琛屾椂闂�',
+                             end_time bigint(20) not null default '0' comment '璋冨害缁撴潫杩愯鏃堕棿',
+                             interval_time int(11) not null default '5000' comment '鍐呴儴绾跨▼鎵ц闂撮殧鏃堕棿锛岄粯璁わ細5绉�',
+                             sleep_time int(11) not null default '600000' comment '绾跨▼鎵ц涓紝鐫$湢鏃堕棿锛岄粯璁わ細10鍒嗛挓',
+                             sleep_option int(11) not null default '1' comment '閲囬泦绾跨▼鍦ㄦ病鏈夎幏鍙栨暟鎹椂锛屾槸鍚﹁繘鍏ヤ紤鐪狅細0_鍚︼紝1_鏄�',
+                             period_type varchar(36) not null comment '鍛ㄦ湡绫诲瀷锛歯one,day,week,month,year',
+                             time_type varchar(36) not null comment '瀹氭椂绫诲瀷锛氱簿纭椂闂確exactly锛屾椂闂存_range',
+                             year int(11) not null default '0',
+                             month int(11) not null default '0',
+                             day int(11) not null default '0',
+                             hour int(11) not null default '0',
+                             ranges varchar(50) default null comment '鏃堕棿鑼冨洿锛屽涓锛�5,6锛�12,15;...',
+                             dept int(11) not null default '0',
+                             class_name varchar(200) not null,
+                             pause_time bigint(20) not null default '0',
+                             summary varchar(255) default null,
+                             primary key (id)
+) engine=innodb default charset=utf8 comment='骞冲彴璋冨害鍣ㄨ褰曡〃';
+
+create table sdc_gather (
+                            id bigint(20) not null,
+                            create_time bigint(20) not null,
+                            create_user varchar(36) not null,
+                            name varchar(120) not null comment '閲囬泦鍚嶇О',
+                            description varchar(255) default null,
+                            src_type tinyint(4) not null default '0' comment '閲囬泦婧愶細0_http,1_db',
+                            src_url varchar(120) not null,
+                            src_port int(11) default '80',
+                            src_service varchar(120) default null,
+                            src_user varchar(120) default null,
+                            src_pass varchar(120) default null,
+                            store_id varchar(36) not null comment '澶栭敭锛氬瓨鍌╥d',
+                            status tinyint(4) not null default '0' comment '鐘舵�侊細0_鍒濆鍖栵紝1_杩愯锛�2_鏆傚仠锛�9_缁撴潫',
+                            schedule_id int(11) not null comment '璋冨害鍣╥d',
+                            primary key (id)
+) engine=innodb default charset=utf8 comment='閲囬泦浠诲姟璁板綍';
+
+create table sdc_meta_db (
+                             id bigint(20) not null,
+                             create_time bigint(20) not null,
+                             store_id varchar(36) not null comment '澶栭敭锛氬瓨鍌╥d',
+                             database_name varchar(60) default null,
+                             used tinyint(4) not null default '0' comment '鏄惁琚娇鐢ㄨ繃锛�0_鍚︼紝1_鏄�',
+                             is_using tinyint(4) not null default '0' comment '姝e湪琚娇鐢細0_鍚︼紝1_鏄�',
+                             host_info varchar(100) not null comment '瀛樺偍浣跨敤搴撶殑淇℃伅锛歩p:port',
+                             table_count int(11) not null default '0' comment '瀛樺湪鐨勮〃鏁伴噺',
+                             summary varchar(255) default null,
+                             password varchar(255) default null,
+                             username varchar(255) default null,
+                             primary key (id),
+                             key store_id (store_id),
+                             constraint sdc_meta_db_ibfk_1 foreign key (store_id) references sdc_store (id) on delete cascade
+) engine=innodb default charset=utf8 comment='鍏冩暟鎹暟鎹簱淇℃伅';
+
+create table sdc_meta_table (
+                                id bigint(20) not null auto_increment,
+                                create_time bigint(20) not null,
+                                store_id varchar(36) not null comment '澶栭敭锛氬瓨鍌╥d',
+                                db_id bigint(20) not null comment '澶栭敭锛歞bid',
+                                table_name varchar(60) not null comment '琛ㄥ悕',
+                                row_count bigint(20) not null default '0' comment '璁板綍鏁伴噺',
+                                summary varchar(255) default null,
+                                primary key (id),
+                                key db_id (db_id),
+                                key store_id (store_id),
+                                constraint sdc_meta_table_ibfk_1 foreign key (db_id) references sdc_meta_db (id) on delete cascade,
+                                constraint sdc_meta_table_ibfk_2 foreign key (store_id) references sdc_store (id) on delete cascade
+) engine=innodb default charset=utf8 comment='鍏冩暟鎹紝琛ㄤ俊鎭�';
+
+create table sdc_store (
+                           id varchar(36) not null comment '瀛樺偍id锛屼富閿�',
+                           create_time bigint(20) default null comment '鍒涘缓鏃堕棿姣鍊�',
+                           create_user varchar(36) not null,
+                           description varchar(255) not null comment '鎻忚堪',
+                           inner_use tinyint(4) not null default '0' comment '鍐呴儴浣跨敤锛�0_琛ㄧず绯荤粺鎺у埗鐨勫唴閮ㄦ暟鎹紝鍏朵粬琛ㄧず澶栭儴瀛樺偍锛屽锛氳嚜宸辨墜鍔ㄥ姞涓婄殑鍙綔涓鸿褰�',
+                           type varchar(30) not null comment '瀛樺偍绫诲瀷锛氭暟鎹簱銆佸垎甯冨紡鏂囦欢绯荤粺绛�',
+                           database_type tinyint(4) not null default '0' comment '鏁版嵁搴撶被鍨嬶細0_derby,1_oracle,2_mysql,3_sqlserver',
+                           strategy varchar(90) not null comment '瀛樺偍绛栫暐鐨勭被鍚�',
+                           deleted tinyint(4) not null default '0' comment '鏄惁搴熷純锛�1_鏄紝0_鍚�',
+                           update_time bigint(20) default null comment '鏇存柊鏃堕棿',
+                           update_user varchar(36) default null comment '鏇存柊鐢ㄦ埛',
+                           define_name varchar(60) not null comment '瀛樺偍搴撳畾涔夊悕瀛楋紝濡傦細鏁版嵁搴撳悕',
+                           select_hosts varchar(100) not null comment '閫夋嫨涓绘満淇℃伅锛屽涓敤鑻辨枃鍒嗗彿闅斿紑',
+                           primary key (id)
+) engine=innodb default charset=utf8;

--
Gitblit v1.9.1