feat: add Index on photos.team (#657)

pull/662/head
wtune 2020-03-14 17:50:47 +08:00 committed by GitHub
parent fc37803e73
commit ee4bc01f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import java.util.Date;
*/
@Data
@Entity
@Table(name = "photos")
@Table(name = "photos", indexes = {@Index(name = "photos_team", columnList = "team")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Photo extends BaseEntity {