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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$In6DsGc4NBlnwFWfHzC1UI2d2dt73IMXZ6Q8qyqlgyeJ0wtc1wVIQ','admin','ak_c71a49f7ed965426','2023-02-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$sz3QyOrYfXW0CenXyrxrRBmnbOADwFbnwnXsNUbCSnECkMXtGGSEd','admin','ak_3014a15ee09220ba','2023-02-06 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$K.87fv31n03OL6Kjwuj9SJJdtkjGS8t8zvS2YIp.aWrOTzOQQCl3/','user','ak_573e5c44371530f9','2023-12-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$MCMeIN0iCEsHzrnHob7mQAyc0ghnGliXhrpLZy4RH8hpFV.vdPruF','user','ak_fdd3ac34dfd8371b','2023-09-02 10:15:00',NULL);

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

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


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

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


