|
@@ -8,12 +8,15 @@ DROP TABLE IF EXISTS `crt_lora_style`;
|
|
CREATE TABLE `crt_lora_style` (
|
|
CREATE TABLE `crt_lora_style` (
|
|
PRIMARY KEY (`id`),
|
|
PRIMARY KEY (`id`),
|
|
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
|
|
|
+ `category_id` BIGINT NOT NULL COMMENT '风格分类ID',
|
|
`name` VARCHAR(255) NOT NULL COMMENT '风格名称',
|
|
`name` VARCHAR(255) NOT NULL COMMENT '风格名称',
|
|
|
|
+ `thumb` VARCHAR(1000) COMMENT '风格缩略图',
|
|
`lora_style_name` VARCHAR(255) NOT NULL COMMENT '风格LoRA名称',
|
|
`lora_style_name` VARCHAR(255) NOT NULL COMMENT '风格LoRA名称',
|
|
- `lora_style_path` VARCHAR(500) NOT NULL COMMENT '风格LoRA路径'
|
|
|
|
|
|
+ `lora_style_path` VARCHAR(500) NOT NULL COMMENT '风格LoRA路径',
|
|
|
|
+ INDEX `idx_category_id` (`category_id`)
|
|
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='短剧创作-风格LoRA表';
|
|
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='短剧创作-风格LoRA表';
|
|
|
|
|
|
-INSERT INTO crt_lora_style(id, name, lora_style_name, lora_style_path) VALUES
|
|
|
|
- (1, 'Hyatsu梦幻宝石眼睛v2', 'hyatsu_gemstone_dream_eyes_v2', '/etc/ComfyUI/custom_nodes/xxx/hyatsu_gemstone_dream_eyes_v2.safetensors'),
|
|
|
|
- (2, '日系漫画风', 'japanese_anime_style', '/etc/ComfyUI/custom_nodes/xxx/japanese_anime_style.safetensors')
|
|
|
|
|
|
+INSERT INTO crt_lora_style(id, category_id, name, thumb, lora_style_name, lora_style_path) VALUES
|
|
|
|
+ (1, 1, 'Hyatsu梦幻宝石眼睛v2', '', 'hyatsu_gemstone_dream_eyes_v2', '/etc/ComfyUI/custom_nodes/xxx/hyatsu_gemstone_dream_eyes_v2.safetensors'),
|
|
|
|
+ (2, 1, '日系漫画风', '', 'japanese_anime_style', '/etc/ComfyUI/custom_nodes/xxx/japanese_anime_style.safetensors')
|
|
;
|
|
;
|