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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$p2qSWkjJdPlpQNJU9yI05pfWDQbgpXYYoqYIJO07RRYqmXYrprli4','admin','ak_b87ff80285fa2797','2023-02-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$0X3tPoPup4J0DXq95Pfpg29zj.qG6uwlTbqMdYf9yoPLw1nFfCnJA','user','ak_d54e8538947654f8','2023-06-28 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$ZB86jOCqkKS5rbg6z6dsLQyHwX3PjhVZDNhTu0W7aP2tHSjmKg0ql','user','ak_7d947f40b754ff94','2023-07-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$tFSPdm8PEt5gcPO3xmMAlpdMWF/cTuiFBkGb7XQF44V4ck3VaRqXJ','user','ak_cfd97abd13d541ae','2023-10-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$B4oVvJlK9KImk3Ju04C2y2L45dNMRT6EY230BHaKGbMzSxI9dBGoE','user','ak_8e58a45c1c567ef4','2023-05-11 10:22:00',NULL);

