feat: add index on attachments.media_type (#718)

pull/725/head
wtune 2020-03-27 12:58:27 +08:00 committed by GitHub
parent 89dc411b0f
commit 01e4e5e271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "attachments")
@Table(name = "attachments", indexes = {@Index(name = "attachments_media_type", columnList = "media_type")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Attachment extends BaseEntity {