-- Host: db-master-8.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$gEeCyAsi0CXSM5FrwDYVaaqr3BjCRMKFTdfvx9anZvBDorkULEYYt','user','ak_8544042c8b77f032','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7mhFCr31kVVCm7UQ9VQN89RFbPQ5FyU97gP8ExS9GL1gayN3TDhzp','admin','ak_6a93114a4b793f4f','2023-12-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Gw93DQ38a3/.H/FFcDPhdbtFjbFhpo/V2MH/Vrod1KPU7CvAy3TmU','user','ak_6b2d804b7d3da5ab','2023-12-07 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$9I2qzSzupDEiYh2sg4j2bOKc1JpC0.2JSb.0rHwsuxlA9w8HgpJSM','user','ak_e0a95684b9c713a2','2023-09-13 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$DCI01OqiMx61WgU2mQrRaF8ZMQhcQ3vPEPuH21UE.zTsed193/Lrb','user','ak_65a010a2f5d71273','2023-09-27 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$iSUAsRNef2FoivSDLJTZvZ3jyNJaE99oJ7520PKOjflhh07uKQU9H','user','ak_58bfcd2bb849aa7f','2023-05-07 10:13:00',NULL);

