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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$UiPTAva4uitvASJjseEiD34pUioGLqBKaKd1Uy45Wk49JU.1moeyq','user','ak_9b1dc6b7e5d5cbea','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ClzJSesguD5engO8R.IDLOhUC1oxefs62YyauwW6AXBazRo7ievQy','user','ak_724f666c4e7f6243','2023-01-22 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$nYAn6rD2bl6/MxkOisZl0VPSGSfHNC/j8z9YTJXHa0kj3Lt1Mw8a7','user','ak_8163fe7c2821c685','2023-05-19 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$9RLxjNRToUFfum/D2Vn3pbW5aJ/9ckPMYiHv9xjDRfmvmlLnNYbX3','user','ak_d24f5b6ec83e8285','2023-05-24 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Ma6dCoxPN6chiqsngsdTLS75zu0618UbPMXzJl9kr7a0XsTRMPrDa','user','ak_3ef5c3c4f4810b99','2023-04-25 10:01:00',NULL);

