This commit is contained in:
2024-11-23 23:25:52 +01:00
parent c808e50c34
commit 19dc208b6a
19 changed files with 822 additions and 113 deletions

9
dbddl/received.sql Normal file
View File

@@ -0,0 +1,9 @@
CREATE TABLE public.received
(
id serial4 NOT NULL,
filename text NULL,
"content" text NULL,
created_at timestamptz DEFAULT CURRENT_TIMESTAMP NULL,
loaded_at timestamptz NULL,
CONSTRAINT received_pk PRIMARY KEY (id)
);

12
dbddl/virtusers.sql Normal file
View File

@@ -0,0 +1,12 @@
CREATE TABLE public.virtusers
(
id serial4 NOT NULL,
ftpuser text NOT NULL,
hash text NOT NULL,
virtpath text NOT NULL,
perm text NOT NULL,
defined_at timestamptz DEFAULT CURRENT_TIMESTAMP NULL,
deleted_at timestamptz NULL,
CONSTRAINT virtusers_pk PRIMARY KEY (id),
CONSTRAINT virtusers_unique UNIQUE (ftpuser)
);