-- Host: db-master-5.internal    Database: main_app


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$sW8UcLwT4DwRh1HNxw4uC/uxQcRwkCghnAR7AoPaF2yjwFTtarAcj','user','ak_2b19559e0a88db4b','2023-10-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Y7U4GR7TdSPjoTDdo1SwhniX.pM5z8QXHBrTVoeDr5PQVRCCGRnui','user','ak_c887b93713b60cc2','2023-10-17 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Jn9O0isYAY3OTKclLl/K6neLvmhwzPNDUyfZHkTpIbEtjkQalKjJH','user','ak_2ff4f67adf82b71e','2023-02-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$x51Q1PC4svXE5zAUyIiPly6Vrn43hlwMjfaQaW/nmrJNg4E6FAV1b','admin','ak_abd29f7cb2e0f79b','2023-10-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$lzq3VXQDMJhb0S3ZRUuU.PU4jc/XG3Aror019U360GjbYWLahCOqT','admin','ak_123320afdebaa38a','2023-02-28 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$B9ecUpeeZjW/5PyBPm6scROig/Nb8yPpV6YEqS5BsLXr8Qbr0oD2m','user','ak_3937d4580926bf44','2023-02-27 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$byhzLnZ5DugzCPvOu9PbWvgTk/UaNXLbkaLvN4H9thiCqx/gRcsps','user','ak_ec34a4e2d7f89a3e','2023-11-18 10:21:00',NULL);

