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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$CQztyAocBLh2205ch2n7m3vElB5jaRCKbkQoWpkBH7Yy/hADDoYES','admin','ak_6d87ea1a3ab3ffaf','2023-03-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$GHZTs4ytQ4lNOAOnxqOLbsIx74VRm4vwxR.x5BEh3yW69KzVEc0K/','user','ak_545487fdda023030','2023-07-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$FW8m0tMCpZvk59l2PJCMHGV0.AxBZHx1PPR4ARtLi1FjMVb4T8keI','user','ak_78ab7e8ae61447f3','2023-04-24 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$BmfVG6eXy5Y0ovfWB.qgj8//fSA/BWKzuJm.BLGm/MPGr/veQqcz9','user','ak_b8b6bdac5dc2c2b7','2023-06-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$H8bgmAd5w777I9id5my/O3L77zCPAl4gTmXh0vKAUwv7Us2opgLyO','user','ak_cbbe5daaa9ecff3c','2023-04-14 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$RsAeY953iTHPs9hxettqn4s7GAi0wEBPpFNzWClkX/iE1kKN7tPtL','user','ak_79c53be9ee69f22b','2023-03-07 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=48324;

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

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


