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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$OeI1cxC4hZzixBmwicix.2QOiCEXU5e5pkP7s8fimdbeN1YqRW84b','user','ak_0fc368c5b672820a','2023-04-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Fzkbs5ME0U0AQdLQm5aUUI43ERnirvVV3hK1byZjJWd9DG9Xmh16N','user','ak_4022213c64fe5ef4','2023-08-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$b0TH82c6Va1snbMVq3AvRbd9JoeYE2K/gGrswIivKx.Ho7Bj7tlwn','user','ak_4bc7ab90f093a6d2','2023-01-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$SzsesUGY5cSYPgesTFVy0ih5cmMqmdWUOeWcf3ckWXnJle1cqxgNy','admin','ak_5aecbd60db6e7cbf','2023-01-09 10:03: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=49208;

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


