feat: add Index on menus.parent_id (#655)

pull/662/head
wtune 2020-03-14 17:51:40 +08:00 committed by GitHub
parent ee4bc01f65
commit b2b349ae27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "menus")
@Table(name = "menus", indexes = {@Index(name = "menus_parent_id", columnList = "parent_id")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Menu extends BaseEntity {