mirror of https://github.com/halo-dev/halo
feat: add Index on comments.post_id (#649)
parent
c1f01df394
commit
e357b7a462
|
@ -18,7 +18,7 @@ import javax.persistence.*;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Entity(name = "BaseComment")
|
@Entity(name = "BaseComment")
|
||||||
@Table(name = "comments")
|
@Table(name = "comments", indexes = {@Index(name = "comments_post_id", columnList = "post_id")})
|
||||||
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
|
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|
Loading…
Reference in New Issue