mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
1) Created components for statistic reporting. 2) Database changes and PROC/Function creations. Still need to make MOST VIEWED LIBRARIES/CLIENTS/ MOST ACTIVE USERS dynamically load with date range (Function Creation on DB side)
18 lines
583 B
SQL
18 lines
583 B
SQL
-- Table: public.app_config
|
|
|
|
-- DROP TABLE IF EXISTS public.app_config;
|
|
|
|
CREATE TABLE IF NOT EXISTS public.app_config
|
|
(
|
|
"ID" integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
|
|
"JF_HOST" text COLLATE pg_catalog."default",
|
|
"JF_API_KEY" text COLLATE pg_catalog."default",
|
|
"APP_USER" text COLLATE pg_catalog."default",
|
|
"APP_PASSWORD" text COLLATE pg_catalog."default",
|
|
CONSTRAINT app_config_pkey PRIMARY KEY ("ID")
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
ALTER TABLE IF EXISTS public.app_config
|
|
OWNER to postgres; |