mirror of https://github.com/halo-dev/halo
feat: add index on photos.create_time (#727)
parent
4f99e72669
commit
51e0620393
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue