-- Host: db-master-6.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=23394;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$BrMxtiDKr5L7/m9AaqU84JPIFk9X/f8N4sBFlKhcB1GdZmSUpHUQe','user','ak_326383a2df836e6d','2023-08-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$YExSUnvlaXrfpgofN6nmdHeotHbEwQ/RMNZwBgyuML.ee/zfWZkC8','user','ak_ae2fad805b52c45c','2023-01-23 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$DYoJS2S8QkUHED.uc6ScI240ItqlvGrA8PbB3pBitDcakeCMk5phi','admin','ak_eb1c10c30cfe2a48','2023-06-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$a.YnCcX5deUzTx5Wu12GIhygyZAVAY6sCfAyjm6mdmt6m7Fa1.Yq4','admin','ak_aec06fae727e6cb6','2023-11-14 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$qOeYzo0loulFlrVhoguQ3iMmRUT/XhQCy2GcfWTxcDM0ylF3Spo8u','user','ak_1b6b652b8f5ab5ee','2023-06-03 10:13: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=15492;

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


