-- Host: db-master-8.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=33842;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$daHfutEnZGSIfBDK3nEofUKoVEF7wWft2lOnu5lm7wVWCDBWXLTa.','user','ak_88cd0c5952e3ac2d','2023-12-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$NuY9jLv1uCwbRHphcF7d5SD6DSiJ5s96u.LHcsUcMGUZBVgh71WTg','user','ak_e7e64a293829c5c7','2023-06-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ghg46asJPDb8ZVPEhd9Kv6aPCvo2l5HQKTXz3BXoESHwAHgio35Px','admin','ak_307961caaa214be4','2023-01-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$KObrIzRFVCoFrndEtmAtY.uPyC3IBzw7TzMsw2qF.uUEQeI6Nl1Gn','admin','ak_23d2bc8de2109def','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$Wdwkg/cMUU0eTtIVSnbJl8oKfJxCN5LW7Jv3Z0qz3AtlYH.sO/jv3','user','ak_2d051592e6d2f0c1','2023-01-25 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ewZM978IpruKdMPv7g1dOBiHxjUVSQ6xRxsETiiAOYS9qOIXnEigK','user','ak_b2e07dbba8819f19','2023-06-05 10:13: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=11478;

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


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

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


