Skip to content

Commit

Permalink
feat(SILVA-570): recent openings history for the nr-silva application…
Browse files Browse the repository at this point in the history
… front-end Only (#463)

Co-authored-by: Paulo Gomes da Cruz Junior <paulo.cruz@gov.bc.ca>
  • Loading branch information
jazzgrewal and paulushcgcj authored Nov 15, 2024
1 parent c47a4c5 commit bab9a7c
Show file tree
Hide file tree
Showing 35 changed files with 1,674 additions and 1,065 deletions.
16 changes: 16 additions & 0 deletions backend/src/main/resources/db/migration/V1__create_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,19 @@ CREATE TABLE IF NOT EXISTS silva.oracle_extraction_logs (
CONSTRAINT oracle_extraction_logs_pk
PRIMARY KEY(id)
);

-- Create sequence if it doesn't exist for User Recent Openings
CREATE SEQUENCE IF NOT EXISTS silva.user_recent_openings_seq
START WITH 1
INCREMENT BY 1
MINVALUE 1
NO MAXVALUE
CACHE 30;

-- Use the sequence in your table creation or insert statements
CREATE TABLE IF NOT EXISTS silva.user_recent_openings (
id BIGINT PRIMARY KEY DEFAULT nextval('silva.user_recent_openings_seq'),
opening_id VARCHAR(255) NOT NULL,
user_id VARCHAR(255) NOT NULL,
last_viewed TIMESTAMP DEFAULT NOW()
);
Loading

0 comments on commit bab9a7c

Please sign in to comment.