CREATE TABLE `vn`.`clientRate` (
	`id` int(11) NOT NULL AUTO_INCREMENT,
	`clientFk` int(11) NOT NULL,
	`dated` date NOT NULL DEFAULT current_timestamp(),
	`value` decimal(10,2) DEFAULT NULL,
	PRIMARY KEY (`id`),
	UNIQUE KEY `clientRate_unique` (`clientFk`,`dated`),
	CONSTRAINT `clientRate_client_FK` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;