-- Host: db-master-4.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=29050;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$z1jVZenaauLjdasE2J9Ys7HEpG9dddEISNXJoZrJjREOVpwNj2k6s','user','ak_0579e9278ab77137','2023-02-10 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$OHftrhFtaCd4yEqY2SCqKKgl5eUpf9/n9NCG3KuHwUKdTjclFPy/k','admin','ak_12ffb7a4c0dd73d2','2023-08-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Snkv0Ela3V2LLNq0e1bP9EgNa3FQyyMhAnFuS3PEi7Y065wM00f05','user','ak_7b35dffaa3047cb5','2023-01-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$pNgYf5GpdjnFf8zPpSqYiugn8No32SV7HE59Id0tvASjXY62o6UEC','user','ak_bc5ed235d1882e25','2023-06-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$3WKK8ZnVO1LFgW9wscXSruTTXkzMIRSGTf2Ttgk2vs6zg3P7zZ9gK','admin','ak_dd4fbf69986dd8d8','2023-10-03 10:13: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=32019;

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


