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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$7BheIWi0JUjR9Ah8u35iEfHeYcOiFusl7Kfbchhp6slVajI/hPpq0','admin','ak_6fcb9660ce0ed100','2023-03-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$sigID9lkRPDDKMNDI3MtLit0ZVf8UP7cTq/tJY6Xfa4xv8FJ63UNW','user','ak_e18ab17baa20037a','2023-03-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$nipUQN66vFsHTk6LlRm4fTkFDAEcwArLtzB0bKtJ7GAyGDX/GqYf7','user','ak_8891d579cc03ff9c','2023-08-10 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$8PHtIeLh7eR4A8jvL8z2Igd3JZ00f34s17nyxpBfq0zUESnEu5iWy','admin','ak_32f21d85af6ee54e','2023-07-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$yYniyu1BqJHIu/mdsWZR/AknV5ge51h4U4zldsCwhWvtPGPe.qnNT','user','ak_d3248426983c77bd','2023-05-28 10:03:00',NULL);

