mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-24 11:28:29 +02:00
Fields now allow correct pricing input; fixed deposit
This commit is contained in:
parent
68d54f7592
commit
66500a4939
4 changed files with 84 additions and 84 deletions
|
@ -76,9 +76,9 @@ CREATE TABLE IF NOT EXISTS `registry`.`registrar` (
|
|||
`url` varchar(255) NOT NULL,
|
||||
`abuse_email` varchar(255) NOT NULL,
|
||||
`abuse_phone` varchar(255) NOT NULL,
|
||||
`accountBalance` decimal(8,2) NOT NULL default '0.00',
|
||||
`creditLimit` decimal(8,2) NOT NULL default '0.00',
|
||||
`creditThreshold` decimal(8,2) NOT NULL default '0.00',
|
||||
`accountBalance` decimal(12,2) NOT NULL default '0.00',
|
||||
`creditLimit` decimal(12,2) NOT NULL default '0.00',
|
||||
`creditThreshold` decimal(12,2) NOT NULL default '0.00',
|
||||
`thresholdType` enum('fixed','percent') NOT NULL default 'fixed',
|
||||
`currency` varchar(5) NOT NULL default 'USD',
|
||||
`crdate` datetime(3) NOT NULL,
|
||||
|
@ -143,10 +143,10 @@ CREATE TABLE IF NOT EXISTS `registry`.`poll` (
|
|||
`obj_acDate` datetime(3),
|
||||
`obj_exDate` datetime(3) default NULL,
|
||||
`registrarName` varchar(255),
|
||||
`creditLimit` decimal(8,2) default '0.00',
|
||||
`creditThreshold` decimal(8,2) default '0.00',
|
||||
`creditLimit` decimal(12,2) default '0.00',
|
||||
`creditThreshold` decimal(12,2) default '0.00',
|
||||
`creditThresholdType` enum('FIXED','PERCENT'),
|
||||
`availableCredit` decimal(8,2) default '0.00',
|
||||
`availableCredit` decimal(12,2) default '0.00',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `poll_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='poll';
|
||||
|
@ -156,7 +156,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`payment_history` (
|
|||
`registrar_id` int(10) unsigned NOT NULL,
|
||||
`date` datetime(3) NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`amount` decimal(8,2) NOT NULL,
|
||||
`amount` decimal(12,2) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `payment_history_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='payment history';
|
||||
|
@ -170,7 +170,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`statement` (
|
|||
`length_in_months` tinyint(3) unsigned NOT NULL,
|
||||
`from` datetime(3) NOT NULL,
|
||||
`to` datetime(3) NOT NULL,
|
||||
`amount` decimal(8,2) NOT NULL,
|
||||
`amount` decimal(12,2) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `statement_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='financial statement';
|
||||
|
|
|
@ -75,9 +75,9 @@ CREATE TABLE registry.registrar (
|
|||
"url" varchar(255) NOT NULL,
|
||||
"abuse_email" varchar(255) NOT NULL,
|
||||
"abuse_phone" varchar(255) NOT NULL,
|
||||
"accountbalance" decimal(8,2) NOT NULL default '0.00',
|
||||
"creditlimit" decimal(8,2) NOT NULL default '0.00',
|
||||
"creditthreshold" decimal(8,2) NOT NULL default '0.00',
|
||||
"accountbalance" decimal(12,2) NOT NULL default '0.00',
|
||||
"creditlimit" decimal(12,2) NOT NULL default '0.00',
|
||||
"creditthreshold" decimal(12,2) NOT NULL default '0.00',
|
||||
"thresholdtype" varchar CHECK ("thresholdtype" IN ( 'fixed','percent' )) NOT NULL default 'fixed',
|
||||
"currency" varchar(5) NOT NULL default 'USD',
|
||||
"crdate" timestamp(3) without time zone NOT NULL,
|
||||
|
@ -151,10 +151,10 @@ CREATE TABLE registry.poll (
|
|||
"obj_acdate" timestamp(3) without time zone,
|
||||
"obj_exdate" timestamp(3) without time zone default NULL,
|
||||
"registrarname" varchar(255),
|
||||
"creditlimit" decimal(8,2) default '0.00',
|
||||
"creditthreshold" decimal(8,2) default '0.00',
|
||||
"creditlimit" decimal(12,2) default '0.00',
|
||||
"creditthreshold" decimal(12,2) default '0.00',
|
||||
"creditthresholdtype" varchar CHECK ("creditthresholdtype" IN ( 'FIXED','PERCENT' )),
|
||||
"availablecredit" decimal(8,2) default '0.00',
|
||||
"availablecredit" decimal(12,2) default '0.00',
|
||||
primary key ("id")
|
||||
);
|
||||
|
||||
|
@ -163,7 +163,7 @@ CREATE TABLE registry.payment_history (
|
|||
"registrar_id" int CHECK ("registrar_id" >= 0) NOT NULL,
|
||||
"date" timestamp(3) without time zone NOT NULL,
|
||||
"description" text NOT NULL,
|
||||
"amount" decimal(8,2) NOT NULL,
|
||||
"amount" decimal(12,2) NOT NULL,
|
||||
primary key ("id")
|
||||
);
|
||||
|
||||
|
@ -176,7 +176,7 @@ CREATE TABLE registry.statement (
|
|||
"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,
|
||||
"amount" decimal(8,2) NOT NULL,
|
||||
"amount" decimal(12,2) NOT NULL,
|
||||
primary key ("id")
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue