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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6aLUgOZOLtWKV2CbDUjEiRzKtOfNWxHBurBzHhzFxwH7Csaxk6qda','user','ak_c4a070d5c77ddd44','2023-10-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$YUx.//XTl.vAKMa8wZiGgEIdqqcZvS0OOS9yiqEB2i3hqV/r9I1TA','admin','ak_9b02935aa90ae8ea','2023-02-11 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$yWepIkHbbx3S7tgqsWdC0axPOj9Ez8wg0/3a2ohMnMlfwhB5C3rjb','user','ak_fb97615c6467feb0','2023-06-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$M.JALEPjbvvod91.FzgBfS6fdWCLrkNwUG1BvMMaOKt2qK85Uwlct','user','ak_a5813a4bc035e4d6','2023-12-25 10:04:00',NULL);

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

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

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


