File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
java/com/andriawan/andresource/entity Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55import lombok .*;
66
77@ Entity
8- @ Table (name = "refresh_token" , schema = "auth " )
8+ @ Table (name = "refresh_token" , schema = "auth_internal " )
99@ Data
1010@ NoArgsConstructor
1111@ AllArgsConstructor
Original file line number Diff line number Diff line change 11-- V3__create_refresh_token.sql
22
33-- Create the auth schema if it doesn't exist
4- CREATE SCHEMA IF NOT EXISTS auth ;
4+ CREATE SCHEMA IF NOT EXISTS auth_internal ;
55
66-- Create the refresh_token table
7- CREATE TABLE IF NOT EXISTS auth .refresh_token (
7+ CREATE TABLE IF NOT EXISTS auth_internal .refresh_token (
88 id SERIAL PRIMARY KEY ,
99 token TEXT NOT NULL UNIQUE,
1010 user_id INTEGER ,
@@ -19,8 +19,8 @@ CREATE TABLE IF NOT EXISTS auth.refresh_token (
1919
2020-- Index for quick lookup by token
2121CREATE INDEX IF NOT EXISTS idx_refresh_token_token
22- ON auth .refresh_token (token);
22+ ON auth_internal .refresh_token (token);
2323
2424-- Index to help with cleanup of expired tokens
2525CREATE INDEX IF NOT EXISTS idx_refresh_token_blacklisted_at
26- ON auth .refresh_token (blacklisted_at);
26+ ON auth_internal .refresh_token (blacklisted_at);
You can’t perform that action at this time.
0 commit comments