-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$eW21s7VE9UNXoSNnVDA1DG1q6CoXxQRxT7L.9ICcCB1VbQJ249Wpl','user','ak_5afbfdd7c560ef8c','2023-08-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$8Lt51LR9qT0MjlH8aAHFvBjsQdVsjO44tv6y5lSFKjbLti8PdxzY2','user','ak_104347742a25e7a2','2023-12-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$tjz3pSNc3UeH0mpYcaA0WVRD4vGgpR23jrsFib1W1mSwkTI1PprM/','user','ak_21e5e79ea4ed6d6a','2023-06-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$pe6GnHV6/FgZslQldRieOJSobHCQ/GFDWX0oFBn/aI0A/a0ExXsKF','user','ak_4c70b27a32f00c42','2023-12-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$vJrZcrrbsWIZugLOI7Mei1fwEWVxbZrX.r0K9MrYCQP3vzeme.bX0','user','ak_79b61f7da2905068','2023-12-08 10:19: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=22963;

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


