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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$vuyxi1x0bRnBkyx7vXCmU8Pm.0oIPS4rI9nwShw/JIJIkg3y4V9qr','admin','ak_4926d2567d8c1adc','2023-02-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Cy3R5nLMb82fNKn5Cu.ZfbV/Jk5XCbv.1tWzw6eB7phmWJwqwfHRX','user','ak_f053fdc5639eeb67','2023-02-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$9fikldJuK/7aASVHrKY5IiiQ4EUaBeqcf136Djg2Gj.VjGcB6lF69','user','ak_471eb0bda6723783','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Uj.vHx6Rds2nhNcY8/k08KZDr.jhG3n882h5MtrwfiOPOwRNujkoa','admin','ak_0ec5973eada4147d','2023-01-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$HF8BcXg/RDJPu5bLy6U.0COqYIkHXFsTJFdnqlQpBhZn7Vss0hOah','user','ak_63dffcbd4500f9ee','2023-03-24 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$cwTqcXUgDaxRU4sS89bRH8Gi5R/3jsDvWMZnkxoBf7HUau22AwE99','user','ak_9b5b217d12c247e1','2023-03-25 10:17:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=12838;

--
-- Dumping data for table `sessions`
--


