-- Host: db-master-3.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=15307;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Ww2YDO5.39YJpK9G1sYO/e6cei5noCeacLwtK2TPKIxJgnVmvR0u5','user','ak_aafe8152b43e1257','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$9yFHE6B3Yn84ZRA3/i2Hym.kxG1XIusmApHt1IPxafonplAcXXzPF','user','ak_349b3bb7dc18faf6','2023-02-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$kDMuEBoOj.P.M6.Lmvm7udpVref0.gDjUI2..9JGUC.kComJoQrqb','admin','ak_3d66a167c6dc280b','2023-06-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$lEe/MUW2LAP2ITnB5gTtn7iHG65tsCTIw7901asbEpCZCuQ.k83Fw','user','ak_c489f3952d9d9aec','2023-07-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$cDc5xhj8B.PnqwwFE84fLa1F/ylq42.ONWr4bjRGIi2dixGSUpkvI','user','ak_d6a67e8d6abbbdaf','2023-10-15 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$kvHHzBFZL5miABQZEgSsXul0bxkWaNMfZuInJMJTGfq9es79sHIzI','user','ak_06566437f1b29930','2023-09-08 10:02: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=39494;

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


