feat: add Index on links.name (#651)

pull/662/head
wtune 2020-03-14 17:52:10 +08:00 committed by GitHub
parent b2b349ae27
commit 124f352ebb
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 = "links")
@Table(name = "links", indexes = {@Index(name = "links_name", columnList = "name")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Link extends BaseEntity {