-- Host: db-master-9.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$gRMMzUlS73CoYXltfdaR/kJA7V7NjLLvC9xxL7nXe33iSh9G2L187','user','ak_7cdf23efd16c909a','2023-08-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$wt1QCUAVb.ykpLhb6ca83xWr8RAHgDSq6GzARz28p.WEcNJQHWQKi','user','ak_79f7ca8d9882f085','2023-01-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$hKLEmEPFtJe0efJB/8eMwVdy0LHXNpkkReaO1wyfS8/dOq6XJa2Gq','user','ak_9a2e55a4d39f3adb','2023-11-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$I5eefqsHhQNxurj0nU9xwppBNqQh1qSy/OLXJ1sfnZIfSw3Pfp2yv','user','ak_4e5de1e72f1ba0aa','2023-01-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$WlNNzligpN1EKVSP8EasqpF5izGX/WsMVfzoatN1XLm5S6xs5of8t','user','ak_b1feade01894c905','2023-10-10 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$6FotO1t7lBNqdkMALALvPp2WCtzWIzwaRBtULXjWzSN27TMdGHsqZ','user','ak_cac5d8e23b07f371','2023-06-04 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$qHOLsQtbXvm7RELt7kreBLhji06NHFt5EacmpUpb2ZUCKTGRRceHQ','user','ak_8488ef48708f91e8','2023-12-21 10:12:00',NULL);

