Add indexes

This commit is contained in:
syuilo 2019-06-13 15:30:51 +09:00
parent b41cddaf5a
commit 9bfbc12afa
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ export class DriveFile {
}) })
public properties: Record<string, any>; public properties: Record<string, any>;
@Index()
@Column('boolean') @Column('boolean')
public storedInternal: boolean; public storedInternal: boolean;
@ -146,6 +147,7 @@ export class DriveFile {
/** /**
* ()URLへの直リンクか否か * ()URLへの直リンクか否か
*/ */
@Index()
@Column('boolean', { @Column('boolean', {
default: false, default: false,
comment: 'Whether the DriveFile is direct link to remote server.' comment: 'Whether the DriveFile is direct link to remote server.'