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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$o7vQVYKmXwVYdl4io4aGRqOqx.4YDiZcBxFP.ia300w2vpE9OoJWP','user','ak_2cf73a46423b20cd','2023-06-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ugSfTIUXCbiHONxZzxKbSkedkCenB2YZDxFfepbYOHzZaaN1M2wXK','user','ak_163dce7ddefae25e','2023-07-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$g6DdifkeI2fu58kxJ8uhpbwqx39DzZ5mGM.TnQlmP4hQU042hveU1','admin','ak_af19fb69ad7ba7cc','2023-01-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$VlNA8VXd56i7Mle.pMFSe/fPvgMtzDRDGDIT5ifY5Zn.7gD0R8T61','user','ak_b59827fed4652064','2023-03-11 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$CKxaDYvP/yYAwS1wPT3AAp1TlJHgUoEph/x8wXYIqAuSJ2RSCFC8c','user','ak_2731f2c039fe3035','2023-01-01 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$DIFLRu//eDbZrBpU51MGc3tKy2C18CtfrIqBBPFaSdUyxK0LPguJl','admin','ak_8f490f3171c72214','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$tz7eV6Zu2Uq8HIMr4EFvAuCQUMxQa7ofel3wbQ8iupsSeff97DPP1','user','ak_162e0b3c25afbc36','2023-12-18 10:12: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=14070;

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


