feat: add props system and refactor asset library architecture

This commit is contained in:
saturn
2026-03-19 15:37:47 +08:00
parent 9aff44e37a
commit f364bbc9e4
139 changed files with 9112 additions and 2827 deletions

View File

@@ -0,0 +1,11 @@
ALTER TABLE `novel_promotion_locations`
ADD COLUMN `assetKind` VARCHAR(191) NOT NULL DEFAULT 'location';
ALTER TABLE `global_locations`
ADD COLUMN `assetKind` VARCHAR(191) NOT NULL DEFAULT 'location';
ALTER TABLE `novel_promotion_clips`
ADD COLUMN `props` TEXT NULL;
ALTER TABLE `novel_promotion_panels`
ADD COLUMN `props` TEXT NULL;

View File

@@ -104,6 +104,7 @@ model NovelPromotionLocation {
novelPromotionProjectId String
name String
summary String? @db.Text // 场景简要描述(用途/人物关联)
assetKind String @default("location")
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
sourceGlobalLocationId String? // 🆕 来源全局场景ID复制时记录
@@ -170,6 +171,7 @@ model NovelPromotionClip {
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
characters String? @db.Text
props String? @db.Text
endText String? @db.Text
shotCount Int?
startText String? @db.Text
@@ -192,6 +194,7 @@ model NovelPromotionPanel {
description String? @db.Text
location String? @db.Text
characters String? @db.Text
props String? @db.Text
srtSegment String? @db.Text
srtStart Float?
srtEnd Float?
@@ -878,6 +881,7 @@ model GlobalLocation {
name String
artStyle String?
summary String? @db.Text
assetKind String @default("location")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt