perf(server): Add isSensitive index to improve query performance
This commit is contained in:
parent
ccda2181c1
commit
7c5ac2cbb4
2 changed files with 15 additions and 0 deletions
|
@ -145,6 +145,7 @@ export class DriveFile {
|
|||
@JoinColumn()
|
||||
public folder: DriveFolder | null;
|
||||
|
||||
@Index()
|
||||
@Column('boolean', {
|
||||
default: false,
|
||||
comment: 'Whether the DriveFile is NSFW.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue