-- Host: db-master-6.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=26462;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$.5KKWwh25d3KNjE0e40Mb2vogzf6Kpa9sCQV.GUPhqHz0muH70ror','admin','ak_9fd7d53077058316','2023-08-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$kpcXOWwpGWfr6tzXJ/xrTexocqT4SIl54tfGDeXBsv3jjcXT/JqmL','admin','ak_98e9183c98b9ccce','2023-07-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$/Wsu1vi1GT3mJBdEogUplAXYz1jzn304ruIrwmrz7d1ouy8pMmFMg','user','ak_6df26cc0a7287bc7','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$7JbUN15Z5lBhe1LZyCZeEPKYClpCIG1jsG3v.jXSWrasE7M2hfwZA','user','ak_83180e1962cfc4f2','2023-01-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$1pny0x2E/gnt2NcU1XKVpLkXJOljtf8f/7LH4WIYMVo2wQHVfFLQy','admin','ak_602689c9dadcec42','2023-09-26 10:22:00',NULL);

