-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserbox.sql
More file actions
31 lines (25 loc) · 1.08 KB
/
Copy pathuserbox.sql
File metadata and controls
31 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Source Schema : mycron
Date: 14/02/2023 14:46:45
*/
-- ----------------------------
-- Table structure for userbox
-- ----------------------------
DROP TABLE IF EXISTS "mycron"."userbox";
CREATE TABLE "mycron"."userbox" (
"id_mail" int4 NOT NULL,
"current_box" varchar(255) COLLATE "pg_catalog"."default",
"destination_box" varchar(255) COLLATE "pg_catalog"."default",
"from" varchar(255) COLLATE "pg_catalog"."default",
"subject" varchar(255) COLLATE "pg_catalog"."default",
"attachment" varchar(255) COLLATE "pg_catalog"."default",
"os_current_dir" varchar(255) COLLATE "pg_catalog"."default",
"os_destination_dir" varchar(255) COLLATE "pg_catalog"."default",
"group" char(2) COLLATE "pg_catalog"."default",
"audit_date" timestamp(6) DEFAULT now()
)
;
-- ----------------------------
-- Foreign Keys structure for table userbox
-- ----------------------------
ALTER TABLE "mycron"."userbox" ADD CONSTRAINT "idx_id_mail" FOREIGN KEY ("id_mail") REFERENCES "mycron"."usermail" ("id_mail") ON DELETE NO ACTION ON UPDATE NO ACTION;