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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$PXJfwnH64Zkb8MjKJFfGoKBIfBzIRYEdxGyx.HN1..u0odbl56yYe','user','ak_66e4806abc4b7cf6','2023-10-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$hPmfPL./H4Zw9W0ieQwShK9TaLLwSSzjPUYnNON6Y2IW0PnVffNTG','user','ak_ad6bc0ae43c8322b','2023-01-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$zY65DVQ6ZywP/aFc0s3UrwvjBgnItVX4WuchspfJUTkXF0yyyIpL5','user','ak_a3161202ec5dd1c1','2023-02-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$pBnyNjJDcvZzoDcP1rtXvNIXprVc8KDLtm7N4wb2Zs.zXGmF2Ej0f','user','ak_6275659efea55e67','2023-02-18 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$kruhRD8qHRepFOt8BBuMrgfZbYI3wHpLMc/nqBzqDu6X8vmiubDge','admin','ak_8d0670833edccc32','2023-08-12 10:12: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=18749;

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

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


