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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ow1gdiZEQ9yvKEoOUFXIS1ED0fPvhgFvn5i/yNwLeNIkLn8B/1/Ar','user','ak_b68e08e4619a738b','2023-12-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$9lCdCsUHz/fCKe1X03v.beCfrWTegBqeSEhC6w34ND3YZqTEdw3GZ','user','ak_ba904ede43fc638f','2023-09-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9dnUGqlDN6WJfLyV5UNr3NwrjhR42vIYb/aItw6iaGgm5SEpPnrju','user','ak_bce1d259b0a7693a','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$VNonaTegaxnbhskbJ3jfJHO7.3jB4nZG47IHRh.RkZOhBmIXGLhHt','user','ak_af2b6f808a60904a','2023-07-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ObvCYOu4GjzVdyRVfMMNcKSA72dPmXh1NG3KUrVld8RiDjNcYIG/C','admin','ak_e297e96470711470','2023-08-19 10:11: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=24060;

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


