feat: add Index on logs.create_time (#668)

pull/671/head
wtune 2020-03-16 11:21:35 +08:00 committed by GitHub
parent 134dae00a8
commit 839a029012
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 = "logs")
@Table(name = "logs", indexes = {@Index(name = "logs_create_time", columnList = "create_time")})
@ToString
@EqualsAndHashCode(callSuper = true)
public class Log extends BaseEntity {