feat(metadata): add audio-related system metadata fields

This commit is contained in:
yiling
2026-05-26 15:09:06 +08:00
parent bc566fb53a
commit 2a04c49b95
6 changed files with 87 additions and 2 deletions
+40
View File
@@ -112,6 +112,46 @@ export const systemFields: Prisma.MetadataFieldCreateInput[] = [
},
},
},
{
key: 'audio_bit_depth',
scope: 'SYSTEM',
readOnly: true,
config: {
name: 'Audio Bit Depth',
type: 'number',
number: { scale: 0 },
},
},
{
key: 'audio_channels',
scope: 'SYSTEM',
readOnly: true,
config: {
name: 'Audio Channels',
type: 'number',
number: { scale: 0 },
},
},
{
key: 'audio_codec',
scope: 'SYSTEM',
readOnly: true,
config: {
name: 'Audio Codec',
type: 'text',
text: {},
},
},
{
key: 'audio_sample_rate',
scope: 'SYSTEM',
readOnly: true,
config: {
name: 'Audio Sample Rate',
type: 'number',
number: { scale: 0 },
},
},
{
key: 'format',
scope: 'SYSTEM',