/*
 Navicat Premium Data Transfer

 Source Server         : localhost-mysql
 Source Server Type    : MySQL
 Source Server Version : 50732
 Source Host           : 127.0.0.1:3306
 Source Schema         : reghao_oss_rdb

 Target Server Type    : MySQL
 Target Server Version : 50732
 File Encoding         : 65001

 Date: 09/12/2024 17:50:27
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for file_meta
-- ----------------------------
DROP TABLE IF EXISTS `file_meta`;
CREATE TABLE `file_meta` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_time` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
  `update_time` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
  `object_name` varchar(255) NOT NULL,
  `object_id` varchar(255) NOT NULL,
  `pid` varchar(255) NOT NULL,
  `content_id` varchar(255) NOT NULL,
  `sha256sum` varchar(255) NOT NULL COMMENT '文件的 sha256sum 值',
  `filename` varchar(255) NOT NULL,
  `size` bigint(20) NOT NULL,
  `file_type` int(11) NOT NULL,
  `content_type` varchar(255) NOT NULL COMMENT 'http content-type',
  `scope` int(11) NOT NULL,
  `upload_by` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `object_id` (`object_id`) USING BTREE,
  UNIQUE KEY `UK_rfuvf3osnlaakifjdao0a8e2x` (`object_name`,`upload_by`) USING BTREE,
  KEY `sha256sum` (`sha256sum`) USING BTREE,
  KEY `file_type` (`file_type`),
  KEY `pid` (`pid`),
  KEY `filename` (`filename`),
  KEY `acl` (`scope`),
  KEY `content_id` (`content_id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COMMENT='对象元数据';

-- ----------------------------
-- Records of file_meta
-- ----------------------------
BEGIN;
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', '0', 'image', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('video/', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyP', '0', '0', '0', 'video', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('video/playback/', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyQ', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyP', '0', '0', 'playback', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('img/', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyy', '0', '0', '0', 'img', 0, 1000, '0', 2, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('audio/', 'avZ5NARkZK8A2G9z8JbXPyyrKg28xzBj', '0', '0', '0', 'audio', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('audio/playback/', 'avZ5NARkZKPyyrKg28xzBj8A2G9z8JbX', 'avZ5NARkZK8A2G9z8JbXPyyrKg28xzBj', '0', '0', 'playback', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/cover/', 'avZ5NARkrKg28xzBjZK8A2G9zXPyO8Jb', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'cover', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/avatar/', 'avZ5NARkrKg28xzbBjZK8A2G9zXPyO8J', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'avatar', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/photo/', 'avZ5NARkrKg2G9zXPyO8J8xzbBjZK8A2', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'photo', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('file/', 'ed60aeb1740142dd8f7c5aa8f654104a', '0', '0', '0', 'file', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/a/', 'e837b3c3ff524847a1f701e1906f2ab8', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'a', 0, 1000, '0', 2, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/i/', 'b24a5c15eb814bbeab957f9a54333b68', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'i', 0, 1000, '0', 2, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('image/p/', '3bc93348c72e44ffb71275bdf4b60ad4', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyO', '0', '0', 'p', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('video/cam/', '9125c160bf8c40c19f7834a6ef77620c', 'avZ5NARkrKg28xzBjZK8A2G9z8JbXPyP', '0', '0', 'cam', 0, 1000, '0', 2, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('im/', '0eae9823e2c0468da41b19a16373092f', '0', '0', '0', 'im', 0, 1000, '0', 1, '2');
INSERT INTO `file_meta` (`object_name`,`object_id`,`pid`,`content_id`,`sha256sum`,`filename`,`size`,`file_type`,`content_type`,`scope`,`upload_by`)  VALUES ('file0/', '0abde86737714c74ae7274bec41ccfa6', '0', '0', '0', 'file0', 0, 1000, '0', 1, '2');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
