Menu 1 2 3 4 5 7 8 ok
This commit is contained in:
@@ -108,3 +108,21 @@ CREATE TABLE IF NOT EXISTS `ordre_pied` (
|
||||
CONSTRAINT `fk_ordre_pied_entete` FOREIGN KEY (`id_entete`)
|
||||
REFERENCES `ordre` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `historique` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`isin` varchar(50) NOT NULL,
|
||||
`date` date NOT NULL,
|
||||
`price` decimal(19,4) DEFAULT NULL,
|
||||
`open` decimal(19,4) DEFAULT NULL,
|
||||
`hight` decimal(19,4) DEFAULT NULL,
|
||||
`low` decimal(19,4) DEFAULT NULL,
|
||||
`vol` int DEFAULT NULL,
|
||||
`change` decimal(19,4) DEFAULT NULL,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_isin_date` (`isin`, `date`),
|
||||
CONSTRAINT `fk_historique_actions` FOREIGN KEY (`isin`)
|
||||
REFERENCES `actions` (`isin`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
Reference in New Issue
Block a user