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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$nxTjRQOM9dnhCtwyM4BafiGNgtnxJL4oTkYXaA2Cz71iolz564fpN','admin','ak_c0d5d5b07a8defce','2023-06-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$xO0fLkkwmf0USLTISNOodLUKWvZfQtJh.PGQgiGvAmuJ0RR8vj4Xs','user','ak_0692e315af040309','2023-08-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$U/Kx12ZR.XKHQJ6FU3Rw6TwHR31YZajVEcicrOp3yRTelKRmiHMCj','user','ak_780f5a48bc61acf9','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$TlcQZ8Kp6MZvkt3lE70sRR4Fh4miUwg88oD4NV87HcJLycdo7.TOQ','user','ak_0d13fe31f06176c8','2023-03-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$m/uryx6KGGdhQOt9AOJ49CahkajWPi9dRstDFTgLQn/TE8c4TPzKl','admin','ak_769c28a5931f0752','2023-03-07 10:11: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=47699;

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


