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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Ql2PYbFtte7AZyQ8taoTa5Rn.tPok/xPQtRJg5Jty8PUj559VaDL9','user','ak_5f1a0e72f61ad3c6','2023-10-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$4lxgOkL57nvHXS/s3MudKrEJRiSg0tZ1ICr0ONr8Xq90z16JoT/Nj','admin','ak_4bcd6874e644f018','2023-08-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$NgK/Uw78gsIe26Mdj5yCQmUF.f6d.Is/jFOpC7U7g70dA5pZ/YwT1','user','ak_5b649d163946b857','2023-09-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$.M8m5P8oOa4tDqTl0qu1bxiuOU1eTbNu.ih17rpXddwbF6Qvt1w4t','admin','ak_da1af3fc27772ff2','2023-07-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$5agI5F2G8Fk7KSULjp3gyj1r3qMvPFrh9U58UijiivQNYPPCv5LtD','user','ak_73bd462a24915c06','2023-08-18 10:16: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=28707;

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


