-- Host: db-master-4.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=37883;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$iOEbCC4qEMp7uyLDdWYNmGYlHEPNYErn4ir9b0QTK.lOp2I9hXbR4','user','ak_5fe53ac41f4338f3','2023-10-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Xwbg8GNU0mjpT3wZ.hTCcEaYVAtiOMFTBKs8YXfdS9Hb5mv/oY7O9','admin','ak_d81cf812897da97f','2023-04-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$oqyDqktMNmhGsaQyRYrn7dwTA9f7HLCsOWn4t9XlznRv7qNedZYhB','user','ak_b974f18ef5e00e00','2023-05-20 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$tnXWvevZ37LeU8SfOcmeHhzIR7stW5Jp66jdvp0dE4njuSpNuN0Bq','user','ak_d5de41d0fdb9b833','2023-08-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$6dcpT7gbvlWrv7FMKDd7OjGzyDmE69Tk2pCcFBv9Ou.KOSCipfLPo','admin','ak_508e21209b7d25a7','2023-05-05 10:05: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=37336;

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


