Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
/ models Public archive

Commit

Permalink
fix: index the url and type on manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Mar 21, 2022
1 parent 9c90239 commit 96ae521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/manifest.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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
}

0 comments on commit 96ae521

Please sign in to comment.