-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user page information for keeping track of data updates
- Loading branch information
Daniel Villavicencio
authored and
Daniel Villavicencio
committed
Jan 31, 2024
1 parent
c5d9f38
commit 2d356e2
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/com/danielvm/destiny2bot/entity/UserPageInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.danielvm.destiny2bot.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class UserPageInformation { | ||
|
||
private Long userDiscordId; | ||
|
||
private Integer numberOfPages; | ||
|
||
private Integer lastPageCount; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/db/migration/V2__Create_Pagination_Table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE user_page_information | ||
( | ||
user_discord_id BIGINT PRIMARY KEY, | ||
number_of_pages INTEGER, | ||
last_page_count INTEGER, | ||
CONSTRAINT discord_id_fk FOREIGN KEY (user_discord_id) REFERENCES bot_user (discord_id) | ||
); |