-- Host: db-master-9.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=2394;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$3phXERC/tbJ2XLpNfg1B6TnKM1bsy3a3t89h17tKWN8XhGhX.HPc0','user','ak_996517fedc6753ce','2023-07-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$1cL9W74WmTykGUzda1337w70yZUCjVsljbkO1g4I/Eh7b7t/SB5cV','admin','ak_41bd28c2e185e66e','2023-01-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$P8yIj19ins/FRRtZBmu8Sp8ymQkAqGHhiNgWvBS2oZar6OF2z.aN9','user','ak_b61fc9b6109f6383','2023-03-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$E9KfNqb5tqlQzGj8mxSJWJd0ppDDld/szLRwoW299ufg8IjORNqAq','user','ak_07b5f008cba4f167','2023-04-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$hFpr46VvPvqJ.aAYdHun23RLNu1Re5142OFLDzAn.IXbem9RGp6Ro','user','ak_aacb77503694c21e','2023-06-20 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$basxZamIdn9UFW0epoyXEHxMvPvkgs2YLq6TEpe5NFJ5bfb7Ilj3q','admin','ak_fa53c7b490fdc741','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$6WfS9iSu185UEI45I9563zq5RoPuFct09jJFn1ZImmUlYa8QlVylY','user','ak_62d6057f5d9155c1','2023-04-27 10:00: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=30530;

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


