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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WHjCQbvzLDMrVAWlTmNhiGXJXtAXB6laa6DXTBtrtJ9sm0XP4Cxmu','admin','ak_d662d2f8919ca018','2023-05-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$AnoTBU2aRFS6T5/1nv7wp6KuugyIhWQ1FQjl/3z/UJQ/eFj/3Lu47','user','ak_5b54aa13ab207fa2','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$dMC17qt007wu.jKTyWPITN3SbRDL6CRjM7rvbXlyWuhE/otW8ZeQJ','admin','ak_7b9e654bae0ac991','2023-05-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$IyTLcGUMcK8GhxoC5fUV5FA0GXVAfFsB5EazxDxdWpw8zeQAL8rsc','user','ak_a8957bf284c04bf1','2023-02-14 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$kEiHA2vCnTbmff6qHNYnDmP9xmxs6spVIoB7A.bLIp8LhgznGUE2F','user','ak_cccad5ecc67ad3a9','2023-06-06 10:11: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=5265;

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

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


