mirror of https://github.com/halo-dev/halo
feat: add Index on tags.name (#653)
parent
c5af5d787d
commit
fc37803e73
|
@ -14,7 +14,7 @@ import javax.persistence.*;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "tags")
|
@Table(name = "tags", indexes = {@Index(name = "tags_name", columnList = "name")})
|
||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class Tag extends BaseEntity {
|
public class Tag extends BaseEntity {
|
||||||
|
|
Loading…
Reference in New Issue