Small invoices fix

This commit is contained in:
Pinga 2023-12-11 12:47:02 +02:00
parent 93f1a06a40
commit 626b0cd894
4 changed files with 8 additions and 3 deletions

View file

@ -178,6 +178,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`statement` (
CREATE TABLE IF NOT EXISTS `registry`.`invoices` (
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`registrar_id` INT(10) UNSIGNED,
`invoice_number` varchar(25) default NULL,
`billing_contact_id` INT(10) UNSIGNED,
`issue_date` DATETIME(3),
`due_date` DATETIME(3) default NULL,

View file

@ -172,7 +172,7 @@ CREATE TABLE registry.statement (
"registrar_id" int CHECK ("registrar_id" >= 0) NOT NULL,
"date" timestamp(3) without time zone NOT NULL,
"command" varchar CHECK ("command" IN ( 'create','renew','transfer','restore','autoRenew' )) NOT NULL default 'create',
"domain_name" varchar(68) NOT NULL,
"domain_name" varchar(68) NOT NULL,
"length_in_months" smallint CHECK ("length_in_months" >= 0) NOT NULL,
"from" timestamp(3) without time zone NOT NULL,
"to" timestamp(3) without time zone NOT NULL,
@ -183,6 +183,7 @@ CREATE TABLE registry.statement (
CREATE TABLE registry.invoices (
"id" SERIAL PRIMARY KEY,
"registrar_id" INT,
"invoice_number" varchar(25) DEFAULT NULL,
"billing_contact_id" INT,
"issue_date" TIMESTAMP(3),
"due_date" TIMESTAMP(3) DEFAULT NULL,