-- Host: db-master-4.internal    Database: ecommerce


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=29174;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$lOxBBZV/lAlocjNOwXFSp65NVj7uC4bWuLv4AgSFS4fk1z1v5jutT','admin','ak_8f9abcf0ff6fc048','2023-06-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$GMp/eNPVwrx1Sdv13rek2hR/XpaxDO69ev8euyoMXOZfje55odXNV','admin','ak_8c3a468c403df64b','2023-05-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$rFl1qJFZH4h.gIpB8TURz69ir1NlusOmcxtQze.uPjax8c6iffldZ','user','ak_51223ae1a763216b','2023-03-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$8Sb3UiFYHryeT.pYdyDwz4F5u4Hi4FQppmYc3IQN97KVm3Y0J7Yjd','user','ak_9dea1c578e3f8e3a','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$LIF5RNvhjDJgyyC9Axl1rRmdXiI.3avGNkxOOmoQ/iSwkm0xsWboL','user','ak_19e7023632cb386f','2023-09-03 10:08:00',NULL);

