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)
27 lines
1002 B
SQL
27 lines
1002 B
SQL
-- Table: public.jf_activity_watchdog
|
|
|
|
-- DROP TABLE IF EXISTS public.jf_activity_watchdog;
|
|
|
|
CREATE TABLE IF NOT EXISTS public.jf_activity_watchdog
|
|
(
|
|
"Id" text COLLATE pg_catalog."default" NOT NULL,
|
|
"IsPaused" boolean DEFAULT false,
|
|
"UserId" text COLLATE pg_catalog."default",
|
|
"UserName" text COLLATE pg_catalog."default",
|
|
"Client" text COLLATE pg_catalog."default",
|
|
"DeviceName" text COLLATE pg_catalog."default",
|
|
"DeviceId" text COLLATE pg_catalog."default",
|
|
"ApplicationVersion" text COLLATE pg_catalog."default",
|
|
"NowPlayingItemId" text COLLATE pg_catalog."default",
|
|
"NowPlayingItemName" text COLLATE pg_catalog."default",
|
|
"SeasonId" text COLLATE pg_catalog."default",
|
|
"SeriesName" text COLLATE pg_catalog."default",
|
|
"EpisodeId" text COLLATE pg_catalog."default",
|
|
"PlaybackDuration" bigint,
|
|
"ActivityDateInserted" timestamp with time zone
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
ALTER TABLE IF EXISTS public.jf_activity_watchdog
|
|
OWNER to postgres; |