Added application table in DB

This commit is contained in:
Pinga 2023-12-17 10:21:52 +02:00
parent 0eb4ee83da
commit 69511da3d5
3 changed files with 107 additions and 0 deletions

View file

@ -322,6 +322,54 @@ CREATE TABLE registry.domain (
unique ("name")
);
CREATE TABLE registry.application (
"id" serial8,
"name" varchar(68) NOT NULL,
"tldid" int CHECK ("tldid" >= 0) NOT NULL,
"registrant" int CHECK ("registrant" >= 0) default NULL,
"crdate" timestamp(3) without time zone NOT NULL,
"exdate" timestamp(3) without time zone NOT NULL,
"lastupdate" timestamp(3) without time zone default NULL,
"clid" int CHECK ("clid" >= 0) NOT NULL,
"crid" int CHECK ("crid" >= 0) NOT NULL,
"upid" int CHECK ("upid" >= 0) default NULL,
"trdate" timestamp(3) without time zone default NULL,
"trstatus" varchar CHECK ("trstatus" IN ( 'clientApproved','clientCancelled','clientRejected','pending','serverApproved','serverCancelled' )) default NULL,
"reid" int CHECK ("reid" >= 0) default NULL,
"redate" timestamp(3) without time zone default NULL,
"acid" int CHECK ("acid" >= 0) default NULL,
"acdate" timestamp(3) without time zone default NULL,
"transfer_exdate" timestamp(3) without time zone default NULL,
"idnlang" varchar(16) default NULL,
"deltime" timestamp(3) without time zone default NULL,
"restime" timestamp(3) without time zone default NULL,
"rgpstatus" varchar CHECK ("rgpstatus" IN ( 'addPeriod','autoRenewPeriod','renewPeriod','transferPeriod','pendingDelete','pendingRestore','redemptionPeriod' )) default NULL,
"rgppostdata" text default NULL,
"rgpdeltime" timestamp(3) without time zone default NULL,
"rgprestime" timestamp(3) without time zone default NULL,
"rgpresreason" text default NULL,
"rgpstatement1" text default NULL,
"rgpstatement2" text default NULL,
"rgpother" text default NULL,
"addperiod" smallint CHECK ("addperiod" >= 0) default NULL,
"autorenewperiod" smallint CHECK ("autorenewperiod" >= 0) default NULL,
"renewperiod" smallint CHECK ("renewperiod" >= 0) default NULL,
"transferperiod" smallint CHECK ("transferperiod" >= 0) default NULL,
"reneweddate" timestamp(3) without time zone default NULL,
"agp_exempted" BOOLEAN DEFAULT FALSE,
"agp_request" TIMESTAMP(3) DEFAULT NULL,
"agp_grant" TIMESTAMP(3) DEFAULT NULL,
"agp_reason" TEXT DEFAULT NULL,
"agp_status" VARCHAR(30) DEFAULT NULL,
"tm_notice_accepted" TIMESTAMP(3) DEFAULT NULL,
"tm_notice_expires" TIMESTAMP(3) DEFAULT NULL,
"tm_notice_id" VARCHAR(150) DEFAULT NULL,
"tm_notice_validator" VARCHAR(30) DEFAULT NULL,
"tm_smd_id" TEXT DEFAULT NULL,
"tm_phase" text DEFAULT 'NONE'::text NOT NULL,
primary key ("id")
);
CREATE TABLE registry.domain_contact_map (
"id" serial8,
"domain_id" int CHECK ("domain_id" >= 0) NOT NULL,