feat: add Index on theme_settings.setting_key and theme_settings.theme_id (#681)

pull/687/head
wtune 2020-03-16 22:03:44 +08:00 committed by GitHub
parent 2363f4adf7
commit 4d431fd85d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ import javax.persistence.*;
*/
@Data
@Entity
@Table(name = "theme_settings")
@Table(name = "theme_settings",
indexes = {@Index(name = "theme_settings_setting_key", columnList = "setting_key"),
@Index(name = "theme_settings_theme_id", columnList = "theme_id")})
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ThemeSetting extends BaseEntity {