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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$SjjymN/jJB/yPmAIh/md7pvX8wl8nVz3o8fhY9S/P0hfxDHjnh7BC','admin','ak_367f991a116ba9dc','2023-09-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$kULEzEQV0nCxaqflMqi8DvzTxcOA8cXiDcZy5Rk9lUnzCo0OnyzSX','user','ak_fbc60fe9ae248e6c','2023-09-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$YtqLCiBOtd4UmRJ7NeA3ZCB5ge99Q.NtxY89gzi72.uJrs7.bLIuX','user','ak_b708223c58d0a777','2023-08-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$lhCdyrrYhA/AjV9XaqADr6zc1FmUkJYPxf9stw48H7O6TLcXzYaIq','user','ak_dc181a5aaaba5b17','2023-02-14 10:05: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=35828;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=11971;

--
-- Dumping data for table `products`
--


