-- Host: db-master-5.internal    Database: ecommerce


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=8058;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=18753;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$c832Vk8epLVOR3fNnG7H89IOeUeugQ7HjPRlIpsuGDJHMBagDv8iY','admin','ak_9b30d78e948d559c','2023-12-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$YtJ/vFqyhzf6yP2Ny.KPjWgs1atcWBUOGsWxZ9PyBmbbonXinZUAn','user','ak_e29ded2d3cd0b03c','2023-06-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$Xvspe/.r8FT2pSABwgyCrMKbj.2pLshflQkL2JyNkra2etULp3c8b','admin','ak_460c96e8e234480b','2023-03-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$6F4pvsPoK8JSWBRVQqwqmp62e3fxy1vV9PW1RC34Jfip3.k9dszrr','admin','ak_bf1644311f087f1d','2023-07-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$8MAFXwseiDge2.UL8gJsXq4P3ymjAFUp9lxQrB.nKMjR2y92Vfd5n','admin','ak_683a074fbd477e55','2023-01-23 10:18:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11914;

--
-- Dumping data for table `audit_log`
--


