Add index on log.create_time

pull/288/head
Qianmian Yu 2020-03-13 11:15:36 +08:00
parent 286a48368f
commit f37c5d8bac
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 {