Add index on role.name (#294)

Co-authored-by: Qianmian Yu <im.qianmian.yu@gmail.com>
pull/343/head
wtune 2020-04-23 11:58:20 +08:00 committed by GitHub
parent 266910d3ed
commit 66f5704913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ import java.util.Set;
* @date 2018-11-22 * @date 2018-11-22
*/ */
@Entity @Entity
@Table(name = "role") @Table(name = "role",
indexes = {@Index(name = "role_name_index", columnList = "name")})
@Getter @Getter
@Setter @Setter
public class Role implements Serializable { public class Role implements Serializable {