--
-- Host: 127.0.0.1    Database: db_access_02709
-- ------------------------------------------------------


--
-- Table structure for table `t_links`
--

CREATE TABLE `t_links` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `token` varchar(255) NOT NULL,
  `url` varchar(255) NOT NULL,
  `demande` bigint unsigned NOT NULL,
  `expires_at` timestamp NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `t_links_token_unique` (`token`),
  UNIQUE KEY `t_links_demande_unique` (`demande`),
  CONSTRAINT `t_links_demande_foreign` FOREIGN KEY (`demande`) REFERENCES `demandes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `t_links`
--

INSERT INTO `t_links` VALUES (1,'zlCzPnEvFBcbpkWOrYmCcitR9ZEnHFhKg0qrMOUq','access',3,'2025-05-06 19:23:51','2025-05-06 19:21:51','2025-05-06 19:21:51');


