Add index on visits.create_time (#290)

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

View File

@ -15,7 +15,8 @@ import java.sql.Timestamp;
*/
@Entity
@Data
@Table(name = "visits")
@Table(name = "visits",
indexes = {@Index(name = "visits_create_time_index", columnList = "create_time")})
public class Visits implements Serializable {
@Id