-- Host: db-master-0.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=36347;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$89bRxhHgnKtIzV7.P3j213zk.Gjq3USt4wAVMB/K7Dqv3z.WR7oFR','admin','ak_7071ee62dd479238','2023-03-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$U7scHmDP.uZEMF3VXl6f.vxuMGFRQpxdXNHDDae.hdXuRmpkzJSiN','user','ak_63bbcfacb478caf5','2023-08-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$nvw842Y2OkzaTkZe//QXoazKVrvPWkikW8GLxCEbSy.sJxMcyk7Xu','user','ak_574ad39ef1cfffa4','2023-09-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$3W/GNk0q7tesn9cfuWUEd9ttz3vnrsfvhbV5j.W0tNiLeWk84p.yO','user','ak_dba5c10fd737a9e5','2023-05-12 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$oPTSAJqxpCAVw6dsOy1eZYPNonyTdzwPhmo0UNeqqb/pKHjpT63Gj','user','ak_24dadbaf92c1e5cb','2023-02-11 10:07: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=22040;

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


