-- Host: db-master-2.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=22403;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$kHKkk2ddTjEBcqEFMdr8FuK48EwOLOlN0Xbge/y0CrHAu16qEJftI','user','ak_a2bdbf5506264a34','2023-03-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$.X7.Rx1iZeedg9KjQz2awsHGhsSKK/VNNXOIE8O.zY3nBYH9TCGco','user','ak_2c53b582e9dff534','2023-02-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$quqxW9P9R.jvEyei1tNqUwfy/VvQXfksu4pEqc.pR4OiiuWXgHLlZ','admin','ak_8027aef6879cee18','2023-11-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$cLcTF7Hft6ZBqw8i2cPjcFtH0GU2J9Is2hKt2yGvOcK9Fl90k.5Kp','admin','ak_a38c0ef392c41980','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$B8H8V1z1/a1FRTfunVt5/GSDfVlLBQ1a00we/5XnQrzbf9gzoyeGy','admin','ak_d1cbd35cedd6ebcc','2023-05-16 10:04:00',NULL);

