ai_material.sql 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. Source Server Version: 8.0.31
  3. Source Database: backendsys
  4. Date: 2025/07/28 15:57:12
  5. */
  6. DROP TABLE IF EXISTS `ai_material`;
  7. CREATE TABLE `ai_material` (
  8. PRIMARY KEY (`id`),
  9. `id` BIGINT AUTO_INCREMENT COMMENT 'ID',
  10. `user_id` BIGINT NOT NULL COMMENT '上传用户ID',
  11. `category_id` BIGINT NOT NULL COMMENT '素材分类ID',
  12. `tag_ids` VARCHAR(255) COMMENT '素材标签ID(多个以逗号间隔)',
  13. `material_name` VARCHAR(100) NOT NULL COMMENT '素材名称',
  14. `image_thumb_url` VARCHAR(1000) COMMENT '缩略图',
  15. `image_url` VARCHAR(1000) COMMENT '高清图',
  16. `file_url` VARCHAR(1000) COMMENT '文件地址',
  17. `pan_baidu_url` VARCHAR(1000) COMMENT '百度网盘地址',
  18. `is_copyright` TINYINT DEFAULT '-1' COMMENT '是否有版权 (-1否, 1是)',
  19. `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  20. `update_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  21. INDEX `idx_user_id` (`user_id`),
  22. INDEX `idx_category_id` (`category_id`),
  23. INDEX `idx_tag_ids` (`tag_ids`),
  24. INDEX `idx_material_name` (`material_name`)
  25. ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='素材表';
  26. INSERT INTO ai_material(user_id, category_id, tag_ids, material_name, image_thumb_url, image_url, file_url, is_copyright, create_time) VALUES
  27. (1, 2, '6', '御姐魔女-1', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:01'),
  28. (1, 2, '6', '御姐魔女-2', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:02'),
  29. (1, 2, '6', '御姐魔女-3', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:03'),
  30. (1, 2, '6', '御姐魔女-4', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:04'),
  31. (1, 2, '6', '御姐魔女-5', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:05'),
  32. (1, 2, '6', '御姐魔女-6', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:06'),
  33. (1, 2, '6', '御姐魔女-7', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:07'),
  34. (1, 2, '6', '御姐魔女-8', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:08'),
  35. (1, 2, '6', '御姐魔女-9', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:09'),
  36. (1, 2, '6', '御姐魔女-10', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:10'),
  37. (1, 2, '6', '御姐魔女-11', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.png', 'https://www.xxx.com/xx.fla', 1, '2025-07-28 08:30:11'),
  38. (1, 2, '6', '竹屋内', 'https://cos.daogu.ai/temp/d2361395-6e39-4a01-8c3b-1c79095f4391.png?imageMogr2/thumbnail/315x180/pad/1/color/I2Y4ZjhmOA==', 'https://cos.daogu.ai/temp/d2361395-6e39-4a01-8c3b-1c79095f4391.png', 'https://cos.daogu.ai/temp/2d0e951d-d894-4f88-8904-bf9f1d4797f5.fla', 1, '2025-07-30 08:30:00')
  39. ;