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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$mbBSDcyJLolFDx5G3EBbTJ.D7IaQoY6sD/I25.l9WO1PqgYIqbAKX','admin','ak_552e505151236377','2023-12-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$CU1XNpKHDwV1/YuKQssZWRBXWEKAmSisPeWlhXp5/rnrbAnn/gxlv','admin','ak_d33197aa1b80a460','2023-08-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$NKBsx6DQBNoP.WIx87158tvEssM9dXrMLcoqGI7GtzHRdifPmCRmR','user','ak_0b586995cacfa131','2023-02-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$D/Hyq0ueuieYd20Uyaasq7G2veWRUTCGYtbkWFn3oqSFK.lJZEZiz','user','ak_58c8653ffeae3f7d','2023-09-25 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$f9Wrfnr4f4V.DqCl7CWRRQ9Ne1sg7tBA7qLIcQ9UZn.jDVh3Oxl4a','user','ak_96112eaa75e16692','2023-07-21 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$40nfojO5BulD1kZ5gihFOpfWFNH2VaezF4ZRSSsqlrDjPp.DaeP9E','user','ak_e1357dd28b8d52e9','2023-04-26 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$ZDtPVCVzTk3iHC3CuJ9rKtd68dJuNGFgN6uOEObsLkJNVdxLLFQ/o','user','ak_8d8b2ea366aba8a9','2023-06-11 10:17:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=1930;

--
-- Dumping data for table `sessions`
--


