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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Gk7wd/ywbHUhRsCcifyCQq4d72ZSCeR32WKF7JYTSUthvk3r7QTI0','admin','ak_42af9b9d565aafa2','2023-06-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$FJ0dg1j.s0etfNG9YTmoLJ9HUITxlv4UXscq5EjadvkoVhuYM9CzL','user','ak_613e9ce953368b2a','2023-10-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$eAp2SnPT2oh8lmO7XkjELHFT.KRpjATbc0wuN//1hudvmhgHfkAkf','user','ak_54cfa5bcfd9a4513','2023-03-20 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Tox2SstWFdioZjUJ6NO5yy6FGkicmd.eczrM.vHFVsdikmRDcJaro','user','ak_ade25bb9920fb7a2','2023-02-17 10:08: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=36476;

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


