Add index on log.create_time (#288)

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

View File

@ -13,7 +13,8 @@ import java.sql.Timestamp;
*/
@Entity
@Data
@Table(name = "log")
@Table(name = "log",
indexes = {@Index(name = "log_create_time_index", columnList = "create_time")})
@NoArgsConstructor
public class Log implements Serializable {