-- Host: db-master-8.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=49753;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$LcepoOvwBt2w4syf3v5YUAkUDRa3KhRhEnzZdL.TDhmu7fNNTy2SC','admin','ak_f9ebf17e6c65a6e4','2023-11-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$a89ozbygyiezvcsrFXvEo5cm4AW6h4UmGIi2Vvc4BGSIg/1WpwFys','admin','ak_b0d1762fe74b805c','2023-01-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VvMj4X42M6y5JC86CsEec3CEWqhiNAsAFRDNO1Gnjw53KzsdshrWR','admin','ak_a8708945a0c6d915','2023-07-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$csUx.HuXquZCyTIc/aoqW6Se1uScyWg6h080/Ec/fnP28PF.GF.26','user','ak_008f2b1f46c61a2b','2023-09-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ki/nywtpI84t5xFojfkgkIBW3saB7V.AGyH6Y6wmItbTjRTtJpHFm','user','ak_49cea5386da73e6c','2023-08-02 10:05:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=24141;

--
-- Dumping data for table `products`
--


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

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


