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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$teUHDSjMKyvlaLV0p43EjnaBX2ERAUsYOsMGdgOKrfOlO2gqRhYLR','user','ak_4858f04d50be2656','2023-07-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$OdozhblNr.eLuYe2f1DRk3OFYLWxhd83EYBLcl2mZweEDSdZtld4g','admin','ak_7f70320d60a2f358','2023-09-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Cz39fRfihHf/3pSAoxhC/Li5TL9fsSH/Ci4GT19ZSyAv6Zr3nmtup','user','ak_6812c42f0d870075','2023-12-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$BQjUM9cn2536RKzR9EnOVaY6.5TD46f0YwRPzF5b.pumBB79SNsPq','user','ak_fb67ecea18c57e99','2023-07-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$7Xm0WxphAzk0JPDVvzirayH8ZIuFUdET1jAPpE7k3MG64W66U2jak','user','ak_cc30192195e570c6','2023-03-13 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$T1CYquF6Oyfg5ruZ9Yu72oHeIPEta5dEWESjH6XxD9L0cZ5ifJqv1','user','ak_b5e294d77b04c3ae','2023-04-01 10:01: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=2174;

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


