mirror of https://github.com/halo-dev/halo
feat: add Index on post_categories.post_id and post_categories.category_id (#671)
parent
839a029012
commit
1248cb7b14
|
@ -12,7 +12,9 @@ import java.util.Objects;
|
|||
* @author johnniang
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "post_categories")
|
||||
@Table(name = "post_categories",
|
||||
indexes = {@Index(name = "post_categories_post_id", columnList = "post_id"),
|
||||
@Index(name = "post_categories_category_id", columnList = "category_id")})
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
public class PostCategory extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue