-- Host: db-master-9.internal    Database: main_app


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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$9PJXv2ZZDc0DBrX5OnPJfLRUKhu2PU8ADcMWyeF28pLNpsOieWGBh','admin','ak_0d3ae7faca6f3d8a','2023-01-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$DK5Q69eHbpcR6pe3hFPvmSLrngAQyeLD3XaJsiUoJEIkm52CDNa1u','user','ak_b2d6a0574c630482','2023-09-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$yaa7lzk/0ckhogAwFzXwrqTKBtUN8FpyhIxH8dfR8xB7L6VUmjnwq','user','ak_64975b5936f5ce0d','2023-05-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$X6BD67pgSSdui3rIgrmlH.BKsJEcwmmxShSO/uJnA2Y.9v85twBTt','user','ak_184c9c36d63fcc47','2023-03-17 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$qeLbOr6X4i4Br8FyfQoG0elzk1Hp7l4qr1KfS6aHusIdPjtRpJ6uP','user','ak_93fd975e4be181c3','2023-06-04 10:21:00',NULL);

