mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 16:30:29 +05:30
Add index for session_id.
This commit is contained in:
parent
6012c1cd82
commit
2a87b7946d
@ -17,7 +17,8 @@ import javax.persistence.Table;
|
|||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "users", indexes = { @Index(columnList = "id", name = "users_id_idx"),
|
@Table(name = "users", indexes = { @Index(columnList = "id", name = "users_id_idx"),
|
||||||
@Index(columnList = "username", name = "username_idx") })
|
@Index(columnList = "username", name = "username_idx"),
|
||||||
|
@Index(columnList = "session_id", name = "users_session_id_idx") })
|
||||||
public class User implements Serializable {
|
public class User implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user