feat: add index on photos.create_time (#727)

pull/731/head
wtune 2020-03-28 00:15:45 +08:00 committed by GitHub
parent 4f99e72669
commit 51e0620393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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