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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$JDTtSzf1O8ICW55Vv8ItfOrRK0/qmQsxEVHraqR4yJ7Xdlp5AOzyu','user','ak_062e0378456876a4','2023-10-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$nNJ2fwZO/L4Y1vzqfiRxqrj3Ag0tTTH8DWA6X3MNh6MDGEU7hGS7k','user','ak_80b29dcde706d3d4','2023-02-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$FCaxNFGUzv/1EhfEVWawktK7XUcQW4a8uoks2GVaJ5.IIH.XBrMiZ','user','ak_309be88fd31cf2fc','2023-03-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$j5LrFzrUWE0NzrS/6s6/7Hga2W.MNNMSTSe1i8O1ecpWJCcnH4H/J','user','ak_a7c6bfb68b222889','2023-04-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$EEhTxgZ1XQmdGCWf2bc0coAPgCGJYbgpbwbt99a1PcENqUirlo2Qz','user','ak_3df7d3e04285750a','2023-07-13 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=31722;

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

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


