Added metadata field
This commit is contained in:
parent
0715991f97
commit
af2d70d8b7
|
|
@ -24,6 +24,7 @@ model CaseLaw {
|
|||
summary String? @db.Text
|
||||
storageKey String?
|
||||
fileType String
|
||||
metadata Json?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue