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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$fFDuFF31eA/APAoa3LvC0Q6R1XVzkpZGlajyi1UD6a96xtTllTSBE','admin','ak_706b033870cc832f','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$JaPI/aLRs4QBBzanyuJdm7Y8ZeOwgN2aqttEjlpPuCQZygaxgeXvY','admin','ak_f4e1d4560ee45075','2023-10-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$eLmR3HN7lSftrQ7Surbzey7peH/wuClwsWUH.0kypEmdj2ZrIlwHg','user','ak_30467c6b72b53d32','2023-01-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$TPP7bqnP5cpet5fAaOZWvlLbGq5BwN5Nfej9ylfudK.bxiJO2BZBS','user','ak_1297ea787bb6cee2','2023-02-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$w5YxytPYPc0zIgZX2OtL7g9ICIFFfPPO9KTtPk2JwMWFQyHOkAGP7','user','ak_e0ea76bd203e0693','2023-09-17 10:23:00',NULL);

