-- Host: db-master-9.internal    Database: production_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=16880;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$2Qvmqw0xMOCtlAvo3xXInxUm2hZ6IUf03ACAz4rnANicFec16SzaL','admin','ak_0824474d2e144451','2023-07-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$xDYtMgEEhpXr5UcCSbIZWo72gwyBABnHMvJKV6Z43hXbNeZqlnL97','admin','ak_37bb7fdf647a919a','2023-06-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xNN0ytNZvwUGNlic.Stes/Ir1HGpN4WN9qZbB2BMRNP2ekFbiMsbC','user','ak_431310627dd1d212','2023-10-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$keDWmJ5kXCcYskHzPFRXu0yiiWl/brwkWVSkvCVmmt8nGhZPFjikK','admin','ak_3fe879520b0bb006','2023-03-10 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$j3v8YzYO3UEg/LLLPCQI5wvq0xuPGgIfPl5IDaN.5p286PWhImNBM','admin','ak_c050114d184f7bee','2023-12-15 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$XTDhJDslD9i9zfbgbxmtaHm.TF3G0OCtsqdoRXxN4n4DJht0DYjJV','user','ak_7f757843bc61e0a4','2023-02-23 10:09: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=44232;

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


