-- Host: db-master-2.internal    Database: production_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=37473;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$pFHdnf45DUGAJYN98wodMYbh9zp3L4DnE72AbVL2X1MJBYnxinszB','user','ak_c74d1ff104c910d7','2023-06-14 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$eJ.uD/qPhfIgwBmFr0nvBIyAcWRY60WWdEto1xSh0sd5yXPa0h0PL','user','ak_60e91ade36948d4e','2023-09-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$kE35n2blMK7ZtsZQ197V/w3KOetLc/sWcjDv2ZWSZiuBCLe0w5qNx','admin','ak_7694261e14b65d60','2023-10-18 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$fUXPRwXOnl9UaWGIba.9ZIUz7OeLid0ptrlnVRY7mHUyOcIpDtdgx','user','ak_abae7e76d260b8b3','2023-10-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gemRolCO6OxIfgJwqp.rkhe96fa.ovVqgIBOaAj5Pf4IW.Lw8jOKM','admin','ak_88ef96d55086d836','2023-03-11 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$GeGSyXuO0I0ljoOjUa7lWqeH7mkdw4tp9LXags5gOVsGsEcweJB6b','user','ak_3ce25dde829baf89','2023-03-17 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$nXTyMaE43XHg/e4.cLyJrrIyaiJ2D1HihAVQkyceA1c4CU.3P3JfJ','user','ak_dac4b5b15794171e','2023-07-04 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=9482;

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


