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 summary String? @db.Text
storageKey String? storageKey String?
fileType String fileType String
metadata Json?
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
} }

View file

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