mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 15:58:18 +00:00
feat(asset): decouple logical assets from physical storage with StorageKey and implement O(1) copy
This commit is contained in:
+12
-1
@@ -64,6 +64,7 @@ export const ModelName = {
|
||||
ProjectMember: 'ProjectMember',
|
||||
ShareLink: 'ShareLink',
|
||||
Asset: 'Asset',
|
||||
StorageKey: 'StorageKey',
|
||||
AssetMetadataValue: 'AssetMetadataValue',
|
||||
AssetComment: 'AssetComment',
|
||||
AssetCommentAttachment: 'AssetCommentAttachment',
|
||||
@@ -270,7 +271,6 @@ export const AssetScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
nameNgram: 'nameNgram',
|
||||
key: 'key',
|
||||
type: 'type',
|
||||
mediaType: 'mediaType',
|
||||
fileCount: 'fileCount',
|
||||
@@ -285,6 +285,7 @@ export const AssetScalarFieldEnum = {
|
||||
updatedAt: 'updatedAt',
|
||||
parentId: 'parentId',
|
||||
targetId: 'targetId',
|
||||
storageKeyId: 'storageKeyId',
|
||||
creatorId: 'creatorId',
|
||||
taskId: 'taskId',
|
||||
projectId: 'projectId'
|
||||
@@ -293,6 +294,16 @@ export const AssetScalarFieldEnum = {
|
||||
export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum]
|
||||
|
||||
|
||||
export const StorageKeyScalarFieldEnum = {
|
||||
id: 'id',
|
||||
key: 'key',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type StorageKeyScalarFieldEnum = (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum]
|
||||
|
||||
|
||||
export const AssetMetadataValueScalarFieldEnum = {
|
||||
id: 'id',
|
||||
assetId: 'assetId',
|
||||
|
||||
Reference in New Issue
Block a user