From 96ae521e1e87c6afdf141bbf6a978b0e98a2ecca Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Mon, 21 Mar 2022 12:49:53 -0400 Subject: [PATCH] fix: index the url and type on manifest --- src/models/manifest.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/models/manifest.ts b/src/models/manifest.ts index a169d28..381a5c9 100644 --- a/src/models/manifest.ts +++ b/src/models/manifest.ts @@ -1,4 +1,4 @@ -import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm' +import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm' // Types are defined by the manifest generator enum ManifestType { @@ -14,10 +14,12 @@ export class Manifest { databaseId: string @Column('varchar', { nullable: false }) + @Index('manifest_url_idx') // @ts-ignore url: string @Column('varchar', { nullable: false }) + @Index('manifest_type_idx') // @ts-ignore type: ManifestType }