Added metadata field

This commit is contained in:
GeorgeWebberley 2026-03-01 12:35:05 +01:00
parent 0715991f97
commit af2d70d8b7
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,7 @@ model CaseLaw {
summary String? @db.Text
storageKey String?
fileType String
metadata Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}

View file

@ -1,4 +1,6 @@
import { ObjectType, Field, ID } from '@nestjs/graphql';
import { GraphQLJSON } from 'graphql-type-json';
@ObjectType()
export class CaseLaw {
@ -32,6 +34,9 @@ export class CaseLaw {
@Field()
fileType: string;
@Field(() => GraphQLJSON, { nullable: true })
metadata?: any;
@Field()
createdAt: Date;