mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
feat(storage): add archive storage support for assets
This commit is contained in:
@@ -40,6 +40,9 @@ enum AssetStatus {
|
||||
uploaded
|
||||
processing
|
||||
processed
|
||||
archiving
|
||||
archived
|
||||
restoring
|
||||
failed
|
||||
trashed
|
||||
pending_purge
|
||||
@@ -128,6 +131,8 @@ enum WorkflowTaskType {
|
||||
query_embedding_for_search
|
||||
agent_tool_call // @deprecated: Agent tools now execute directly in-process via Core services
|
||||
kanban_agent_run
|
||||
archive_asset
|
||||
restore_asset
|
||||
}
|
||||
|
||||
enum WorkflowTaskStatus {
|
||||
@@ -606,12 +611,13 @@ model Asset {
|
||||
}
|
||||
|
||||
model StorageKey {
|
||||
id String @id @default(ulid())
|
||||
key String @unique
|
||||
status StorageKeyStatus @default(active)
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
assets Asset[]
|
||||
id String @id @default(ulid())
|
||||
key String @unique
|
||||
status StorageKeyStatus @default(active)
|
||||
isArchived Boolean @default(false) @map("is_archived")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
assets Asset[]
|
||||
|
||||
@@map("storage_keys")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user