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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$brveELrsXve880akip13L/b.D5q976YeQd2dDc6S9mO8qjG1ntlt6','user','ak_5f4ec38ce8f07e5d','2023-01-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$b1KHXsjFFyM0J4UEriH91BUwhZzFKhQQZYPbdB1U8C6fhVqshwvsH','user','ak_bfe762453b5dd985','2023-10-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$QHlujygkeowmSPimF0bohqsnH6sI3HGGl/zUhm8apZsI5ks4Y7M3l','user','ak_27355caf78590089','2023-01-08 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$1HevD0E625lNXM.6fTmzIuu.nHEyEFj.G64QQXGaP2aPXQXFCok2c','user','ak_0d839a7cbf2de30f','2023-04-05 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$f0szfGe0eMxoPrvWFC/kx3R1v.Bnv8xeF0wvtp4Ky.lUa.Vs3c9ht','user','ak_2ecb77903e6555df','2023-11-05 10:09:00',NULL);

