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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$WK32xHunc8rpdiuxe8JFvi3s8.reoZdAdFiX.Za138Fuan8n96oEt','admin','ak_f926d344b3b8ad05','2023-04-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XByYVhqDqCx.X6bajmb5HWACtpO.m6SyPaLm/kLTG1CtytEKYWnkY','admin','ak_94060272fe416373','2023-07-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ujb1slpjTKO8zN6CUx7t2FIFqFkFeIIQkelNz9sZGWm27tRKx0Vgi','user','ak_15c107006bf36c46','2023-10-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$rubR/FIPVyqoajP3taStwUBKUZmleFmwYyb6q9q6XsNfNGsPt8rPn','user','ak_3162014bfd1b0072','2023-09-15 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$9eOq3hp9bZG0zrVDq.T6YA8mgFc12vZquuEJxdA8Ddkb8By00X2YH','user','ak_1683de1e7b4c05fc','2023-07-17 10:19: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=36766;

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


