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


--
-- 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=20804;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$wYbE/hpYB8DbX/doWIR.G0.aADdPQCqG5cgU/QmvV3PsjiPx1SgN.','user','ak_19a9540c1fb49f4a','2023-09-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$sxJ.OxKQpGIhhDgQy1FUpBAxbzNj9dydQh8nuFiIz9SEDxBAply7P','admin','ak_2e48cd9853ec3c34','2023-01-02 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ZWuTlmZTQYPuF0l8cDDFslbheOZ56431q8gkW2xAK8diGmarmvUlG','user','ak_79ddac4a71e7294b','2023-12-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$fZtOcWBQWhFMayfmF7LxCCJhFWFCWwyzyV1JRdu4Uy2o.eHpiMEeF','user','ak_da43793c65ecbf56','2023-04-14 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=41360;

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


