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


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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=19211;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$xN2mtqJQMee5W8yeErpesjkZeFkTHDOeSvvRaE.gHrKb6cpNW38j/','user','ak_ec4a8c0031e072b4','2023-04-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$azZX7v3OmiYZ0D7EOYQboY9DA4nVuyklhH5Zvc6AWPoh9gB700Be5','user','ak_70480790d6edff01','2023-06-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$RhFMpJOMbMQSS/PrLp/f2IMlSD/Eb4yp8lG/47Uya3bngnDU7gUA/','user','ak_fed3e2e0a44834cb','2023-05-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$zOVPswLBk0l8ahSJpfmvKnoTuW7DmOtGipEZnWX3K.DeBe9hFg5bA','admin','ak_7c02c2cd128d1cc2','2023-03-23 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$D/Ix5gzLfgUia4Ms1szCoZ8ndBvWmc3F6nms94xjreU1mDfB1dD3Z','user','ak_3c205bc13405d7e2','2023-09-19 10:16:00',NULL);

