Skip to content

Commit

Permalink
Add user page information for keeping track of data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Villavicencio authored and Daniel Villavicencio committed Jan 31, 2024
1 parent c5d9f38 commit 2d356e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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;
}
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)
);

0 comments on commit 2d356e2

Please sign in to comment.