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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=15973;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$Ge5ZaI.UdreM7TD7vXNp/SoZEVBVPDXdqbU6iwd3SHhGHTOvBer8m','admin','ak_f7b33a10002c59cb','2023-01-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$eo9RV3mBXuIxFI1HSJ3rL1ECi9VQQEAhmqoHgmz2yK/cP.ubbwnpo','user','ak_4e7d94528caa0b32','2023-11-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$Hp6dhauDMEjwDvIINuZCQrlFJb.min.O0i2GZUZ2K6Zojb9XqDgbJ','admin','ak_71814bc98073e3e7','2023-05-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$8CIuSa.bj4s7C8xbvVEMxcL6VbvbKS3Y8VaERFOsWdrcTjM/Vj1Sl','admin','ak_90103532f44d60a6','2023-04-13 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$VEif4CrQ1hgqFvL8rAWfTmfUefT7pFx.AUV.lUqkCb/Ejp8zbKSVL','admin','ak_bd8ee9c33990cd82','2023-05-25 10:02:00',NULL);

