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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$oW2nw6o20K9zZLwp3kNp.yfBg63qyP107L8o.MKH.0ozeKK3AnUpP','user','ak_f5ac1f46ab0ada8a','2023-02-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$PENp5dKAWaKHWR1vVV1WmZrGRHKm3znGeCP2CpxAlubnXjt/L196s','user','ak_a96e298875473e29','2023-07-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$mSedYHo8FjYFaS2ByVaDBcuM/esBfkLwWzO6ACbb/6LWdqoHaD88W','admin','ak_3d915232314a4e0e','2023-01-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$qeLmxssFDsJR4Vq/YmIdgHINVsMEU53Krk6TYmnB4/1VNZe3i4/DJ','user','ak_8d67378788e5ca57','2023-10-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$a1sKOSL2FIay7Pryw8T38IBxdP6NV7WukFEl8DQ8xdiicpBIlCAEU','user','ak_0bca5dd2fb50b04a','2023-03-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$KNssUtFtge6Nv8KTE3jXaTpme7HHtaNEK9JGkhwctElRVe52GLFtX','admin','ak_e8b7a2b8741005aa','2023-04-04 10:10:00',NULL);

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

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


