Refactor tutorial and user models to replace fileName with id, update related components and services for consistency
This commit is contained in:
@@ -51,10 +51,11 @@ spring.ai.zhipuai.base-url=https://open.bigmodel.cn/api/paas/v4/images/generatio
|
||||
spring.ai.zhipuai.api-key = 628447c8c65845a48a7226391464a2ea.Dw8ci6TiW0BRF5LI
|
||||
|
||||
#==================Custom App Properties=====================
|
||||
|
||||
app.jwtSecret= ======================spring=back====================
|
||||
app.jwtSecret= ======================jambotron=back=================
|
||||
app.jwtCookieName=jambotron-jwt-cookie
|
||||
app.jwtRefreshCookieName= jambotron-jwt-cookie-refresh
|
||||
app.jwtExpirationMs= 800000
|
||||
app.jwtCookieName=springangularts
|
||||
app.jwtRefreshExpirationMs= 86400000
|
||||
|
||||
|
||||
#=============File Upload Configurations========================
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS public.refreshtoken
|
||||
(
|
||||
id bigint NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1 ),
|
||||
user_id bigint NOT NULL,
|
||||
token character varying COLLATE pg_catalog."default" NOT NULL,
|
||||
expiry_date timestamp with time zone,
|
||||
CONSTRAINT refreshtoken_pkey PRIMARY KEY (id),
|
||||
CONSTRAINT "FK_refreshtoken_users" FOREIGN KEY (user_id)
|
||||
REFERENCES public.users (id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE NO ACTION
|
||||
);
|
||||
Reference in New Issue
Block a user