feat: add Index on tags.name (#653)

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

View File

@ -14,7 +14,7 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "tags")
@Table(name = "tags", indexes = {@Index(name = "tags_name", columnList = "name")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Tag extends BaseEntity {